No map on site - unexpected token

More
7 years 5 months ago #10757 by Rille
No map on site - unexpected token was created by Rille
Hi.
Im new to Zh Googlemap, and I am trying to get a map shown on my site.
In consol I can see that I get a unexpected token error.
Looking further into the code, I see an error on the following line:

isPng: true,

at the following code snippet.
tileSize: new google.maps.Size(256, 256),
isPng: true,
minZoom: 5,
maxZoom: 15,
name: "NZTopo",
alt: "NZTopomaps lag"

The map simply doesn't load, do you have any idea on what I am missing?

Please Log in or Create an account to join the conversation.

More
7 years 5 months ago #10758 by Dima
Replied by Dima on topic No map on site - unexpected token
Hi.
I can't explain without direct link to page with map.

Don't forget support my developments: post review in JED , donate , help with translation ;)

Please Log in or Create an account to join the conversation.

More
7 years 5 months ago #10760 by Rille

Please Log in or Create an account to join the conversation.

More
7 years 5 months ago - 7 years 5 months ago #10761 by Dima
Replied by Dima on topic No map on site - unexpected token
You define your own custom map type (like pre-built OSM map).
But you have syntax error "funktion" instead of "function"
I think the next error will be "Var X " - you need use "var"

Don't forget support my developments: post review in JED , donate , help with translation ;)
Last edit: 7 years 5 months ago by Dima.

Please Log in or Create an account to join the conversation.

More
7 years 5 months ago - 7 years 5 months ago #10762 by Rille
Replied by Rille on topic No map on site - unexpected token
Do you mean that i MUST define a custom map or do you mean that i AM defining a custom map.
What is OSM map?
The funktion instead of function is not anything I have rendered in the code.
However i am using danish language and funktion is the danish way of spelling function.
When you say I need var, do you mean that I have to make changes in the code?
Last edit: 7 years 5 months ago by Rille.

Please Log in or Create an account to join the conversation.

More
7 years 5 months ago #10763 by Dima
Replied by Dima on topic No map on site - unexpected token
I mean 2 things:
1 - Open street map is already exists in map definition.
Look at my docs wiki.zhuk.cc/index.php/Zh_GoogleMap_Description#Map_Details
"Open street map layer"

2 - if you do experiments to create your own map types - you should write in JavaScript language, not in your native.
Function definition in JS is "function"
Here a little tutorial for custom map types
wiki.zhuk.cc/index.php/Zh_GoogleMap_CustomMapType

I think you can unpublish your map type and remove it from custom map types from map definition. And for Open street map - just enable it.

Don't forget support my developments: post review in JED , donate , help with translation ;)

Please Log in or Create an account to join the conversation.

Time to create page: 0.118 seconds

Donate


Go to top