No map on site - unexpected token

  • Rille
  • Rille's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
1 year 3 months ago #10757 by Rille
Rille created the topic: No map on site - unexpected token
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
1 year 3 months ago #10758 by Dima
Dima replied the 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 ;)

Post your sites as examples into my directory
Zh GoogleMap: forum.zhuk.cc/index.php/forum/gm-user-s-sites
Zh YandexMap: forum.zhuk.cc/index.php/forum/ym-user-s-sites

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

  • Rille
  • Rille's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
1 year 3 months ago #10760 by Rille
Rille replied the topic: No map on site - unexpected token

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

More
1 year 3 months ago - 1 year 3 months ago #10761 by Dima
Dima replied the 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 ;)

Post your sites as examples into my directory
Zh GoogleMap: forum.zhuk.cc/index.php/forum/gm-user-s-sites
Zh YandexMap: forum.zhuk.cc/index.php/forum/ym-user-s-sites
Last Edit: 1 year 3 months ago by Dima.

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

  • Rille
  • Rille's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
1 year 3 months ago - 1 year 3 months ago #10762 by Rille
Rille replied the 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: 1 year 3 months ago by Rille.

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

More
1 year 3 months ago #10763 by Dima
Dima replied the 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 ;)

Post your sites as examples into my directory
Zh GoogleMap: forum.zhuk.cc/index.php/forum/gm-user-s-sites
Zh YandexMap: forum.zhuk.cc/index.php/forum/ym-user-s-sites

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

Time to create page: 0.051 seconds

Donate


Go to top