-
Zh GoogleMap
-
Module
-
No map on site - unexpected token
No map on site - unexpected token
-
Rille
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 5
-
Thank you received: 0
-
-
7 years 6 months ago #10757
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.
Less
More
-
Posts: 4609
-
Thank you received: 460
-
-
-
-
-
7 years 6 months ago #10758
by Dima
Hi.
I can't explain without direct link to page with map.
Please Log in or Create an account to join the conversation.
-
Rille
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 5
-
Thank you received: 0
-
-
Less
More
-
Posts: 4609
-
Thank you received: 460
-
-
-
-
-
7 years 6 months ago - 7 years 6 months ago #10761
by Dima
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"
Last edit: 7 years 6 months ago by Dima.
Please Log in or Create an account to join the conversation.
-
Rille
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 5
-
Thank you received: 0
-
-
7 years 6 months ago - 7 years 6 months ago #10762
by Rille
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 6 months ago by Rille.
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 4609
-
Thank you received: 460
-
-
-
-
-
-
Zh GoogleMap
-
Module
-
No map on site - unexpected token
Time to create page: 0.161 seconds