Hello All, I'm using CMS Made Simple 1.7.1. and GoogleMaps 0.1.8.
I have defined a map and a marker related to the map.
When running the page, the map appears correctly but the marker doesn't show.
Does anyone know where the problem lies?
Thanks a lot!
{solved} GoogleMaps Module: Marker is not shown
{solved} GoogleMaps Module: Marker is not shown
Last edited by JoFe on Thu Jul 08, 2010 9:30 pm, edited 1 time in total.
Re: GoogleMaps Module: Marker is not shown
What happens if you place a second marker on the map?
Does it have to do with the initial zoom level and the marker falling of the map due to zoom level?
What steps have you taken to get the marker? Tried a different marker? Have you looked at the source of the rendered page? Did it mention the marker?
Maybe an url to the map for additional support?
Duketown
Does it have to do with the initial zoom level and the marker falling of the map due to zoom level?
What steps have you taken to get the marker? Tried a different marker? Have you looked at the source of the rendered page? Did it mention the marker?
Maybe an url to the map for additional support?
Duketown
Re: GoogleMaps Module: Marker is not shown
Hi Duketown
Thanks for your questions. Here's the html-code of the page:
{cms_module module='GoogleMaps' map='Berghalde' zoom="12" marker="Bauprojekt"}
1. I have tried it with a second marker with a different marker icon. The second marker does not show either.
2. I have changed the zoom level from 12 to 16. No success.
3. Here's the part of the source of the rendered page related to the marker:
var points = [];
var markers = [];
var counter = 0;
var icon = [];
icon[0] = new GIcon();
icon[0].image = "http://localhost/cms_made_simple\module ... yellow.png";
icon[0].shadow = "http://localhost/cms_made_simple\module ... faults.png";
icon[0].shadowSize = new GSize(40,28);
icon[0].iconSize = new GSize(16,28);
icon[0].iconAnchor = new GPoint(8,14);
icon[0].infoWindowAnchor = new GPoint(8,14);
icon[1] = new GIcon();
icon[1].image = "http://localhost/cms_made_simple\module ... 28_red.png";
icon[1].shadow = "http://localhost/cms_made_simple\module ... faults.png";
icon[1].shadowSize = new GSize(40,28);
icon[1].iconSize = new GSize(16,28);
icon[1].iconAnchor = new GPoint(8,14);
icon[1].infoWindowAnchor = new GPoint(8,14);
var map = null;
if (GBrowserIsCompatible()) {
var mapObj = document.getElementById("GoogleMaps1");
if (mapObj != "undefined" && mapObj != null) {
map = new GMap2(document.getElementById("GoogleMaps1"));
map.setCenter(new GLatLng(47.322825, 8.662119), 12, G_HYBRID_MAP);
var customUI = map.getDefaultUI();
customUI.controls.scalecontrol = true;
customUI.controls.smallzoomcontrol3d = false;
customUI.controls.largemapcontrol3d = false;
customUI.zoom.scrollwheel = false;
customUI.controls.maptypecontrol = true;
map.setUI(customUI);
var point = new GLatLng(47.32276,8.66180);
var marker = createMarker(point,"Bauprojekt","Bauprojekt", 0,"");
map.addOverlay(marker);
var point = new GLatLng(47.3228246,8.6621197);
var marker = createMarker(point,"Berghalde Marker","Berghalde Marker", 1,"");
map.addOverlay(marker);
As you see, the markers a included in the page
4. What do you mean with "Maybe an url to the map for additional support?"?
Thanks
JoFe
Thanks for your questions. Here's the html-code of the page:
{cms_module module='GoogleMaps' map='Berghalde' zoom="12" marker="Bauprojekt"}
1. I have tried it with a second marker with a different marker icon. The second marker does not show either.
2. I have changed the zoom level from 12 to 16. No success.
3. Here's the part of the source of the rendered page related to the marker:
var points = [];
var markers = [];
var counter = 0;
var icon = [];
icon[0] = new GIcon();
icon[0].image = "http://localhost/cms_made_simple\module ... yellow.png";
icon[0].shadow = "http://localhost/cms_made_simple\module ... faults.png";
icon[0].shadowSize = new GSize(40,28);
icon[0].iconSize = new GSize(16,28);
icon[0].iconAnchor = new GPoint(8,14);
icon[0].infoWindowAnchor = new GPoint(8,14);
icon[1] = new GIcon();
icon[1].image = "http://localhost/cms_made_simple\module ... 28_red.png";
icon[1].shadow = "http://localhost/cms_made_simple\module ... faults.png";
icon[1].shadowSize = new GSize(40,28);
icon[1].iconSize = new GSize(16,28);
icon[1].iconAnchor = new GPoint(8,14);
icon[1].infoWindowAnchor = new GPoint(8,14);
var map = null;
if (GBrowserIsCompatible()) {
var mapObj = document.getElementById("GoogleMaps1");
if (mapObj != "undefined" && mapObj != null) {
map = new GMap2(document.getElementById("GoogleMaps1"));
map.setCenter(new GLatLng(47.322825, 8.662119), 12, G_HYBRID_MAP);
var customUI = map.getDefaultUI();
customUI.controls.scalecontrol = true;
customUI.controls.smallzoomcontrol3d = false;
customUI.controls.largemapcontrol3d = false;
customUI.zoom.scrollwheel = false;
customUI.controls.maptypecontrol = true;
map.setUI(customUI);
var point = new GLatLng(47.32276,8.66180);
var marker = createMarker(point,"Bauprojekt","Bauprojekt", 0,"");
map.addOverlay(marker);
var point = new GLatLng(47.3228246,8.6621197);
var marker = createMarker(point,"Berghalde Marker","Berghalde Marker", 1,"");
map.addOverlay(marker);
As you see, the markers a included in the page
4. What do you mean with "Maybe an url to the map for additional support?"?
Thanks
JoFe
Re: GoogleMaps Module: Marker is not shown
JoFe,
This seems all to be ok.
With regards to question 4: you gave an answer without knowing it. In the url's to the images of the marker, localhost is mentioned. So your running local. Not an url that I, or another, can have a look at.
Could this be a browser related issue? Which browser are you testing with?
Duketown
This seems all to be ok.
With regards to question 4: you gave an answer without knowing it. In the url's to the images of the marker, localhost is mentioned. So your running local. Not an url that I, or another, can have a look at.
Could this be a browser related issue? Which browser are you testing with?
Duketown
Re: GoogleMaps Module: Marker is not shown
Hi Duketown
Thanks for your analysis. I'm working with Mozilla Firefox Version 3.6.6.
When I enter the address of the marker directly in GoogleMaps, the marker appears properly. I don't know whether this is an indication that the browser is not the issue.
JoFe
Thanks for your analysis. I'm working with Mozilla Firefox Version 3.6.6.
When I enter the address of the marker directly in GoogleMaps, the marker appears properly. I don't know whether this is an indication that the browser is not the issue.
JoFe
Re: GoogleMaps Module: Marker is not shown
JoFe,
I've prepared a map based upon your settings as provided and it results into:
http://www.mantox.nl/prode/index.php?page=kerkerieken
Please check if you see a marker image in colomn Marker Icon. So at least default.png. If blank that is causing the problem.
With zooming level 12, the markers are so close to each other, they are shown as one. There are actually two (test this by selecting the marker using the text on the right side).
Did you try to create both map and its markers just by using default values and next change specific settings?
Duketown
I've prepared a map based upon your settings as provided and it results into:
http://www.mantox.nl/prode/index.php?page=kerkerieken
Please check if you see a marker image in colomn Marker Icon. So at least default.png. If blank that is causing the problem.
With zooming level 12, the markers are so close to each other, they are shown as one. There are actually two (test this by selecting the marker using the text on the right side).
Did you try to create both map and its markers just by using default values and next change specific settings?
Duketown
Re: GoogleMaps Module: Marker is not shown
Hi Duketown
In your map I can see the markers properly with all zoom levels. However, the following messages appear on top:
Warning: fopen(/home/mantox/domains/mantox.nl/public_html/prode/tmp/cache/contentcache.php) [function.fopen]: failed to open stream: Permission denied in /home/mantox/domains/mantox.nl/public_html/prode/lib/classes/class.contentoperations.inc.php on line 568
Warning: fwrite(): supplied argument is not a valid stream resource in /home/mantox/domains/mantox.nl/public_html/prode/lib/classes/class.contentoperations.inc.php on line 569
Warning: fclose(): supplied argument is not a valid stream resource in /home/mantox/domains/mantox.nl/public_html/prode/lib/classes/class.contentoperations.inc.php on line 570
I have removed the GoogleMaps module, reinstalled it and created the map and marker. Even by using the default values, the marker still doesn't show up.
JoFe
In your map I can see the markers properly with all zoom levels. However, the following messages appear on top:
Warning: fopen(/home/mantox/domains/mantox.nl/public_html/prode/tmp/cache/contentcache.php) [function.fopen]: failed to open stream: Permission denied in /home/mantox/domains/mantox.nl/public_html/prode/lib/classes/class.contentoperations.inc.php on line 568
Warning: fwrite(): supplied argument is not a valid stream resource in /home/mantox/domains/mantox.nl/public_html/prode/lib/classes/class.contentoperations.inc.php on line 569
Warning: fclose(): supplied argument is not a valid stream resource in /home/mantox/domains/mantox.nl/public_html/prode/lib/classes/class.contentoperations.inc.php on line 570
I have removed the GoogleMaps module, reinstalled it and created the map and marker. Even by using the default values, the marker still doesn't show up.
JoFe
Re: GoogleMaps Module: Marker is not shown
I have now switched to CGGoogleMaps which works perfectly fine .....
Thanks to everybody to helped or thought about helping!
Thanks to everybody to helped or thought about helping!
Re: GoogleMaps Module: Marker is not shown
Hi,
like this is mostly caused by cache. I cleared it, and away the warnings went.
Happy for you, Jofe, that you found a solution in another module.
Code: Select all
Warning: fwrite(): supplied argument is not a valid stream resource in /home/mantox/domains/mantox.nl/public_html/prode/lib/classes/class.contentoperations.inc.php on line 569
Happy for you, Jofe, that you found a solution in another module.