|
|
Map does not show - 2007/02/24 14:18
I have been trying to get it to work and noticed the other issue on this forum. Still it does not work.
What I have done: - installed and activated the component and plugin - generated the key and entered it in mambot and component - added a map and co?rdinates - adjusted and checked the size: width 300px and heigth 200px. Still it does not work. Please check the following url to see the result: http://www.jurgenenanke.meulenbeek.net/index.php?option=com_content&task=view&id=48&Itemid=25
Await any suggestions, Jurgen
The administrator has disabled public write access.
|
|
|
Re:Map does not show - 2007/02/24 14:27
Could you please post the data, if you don't mind, and I'll see if I can't recreate locally.
Typically, I've seen this happen when a portion of the data is in error. I do need to tighten the UI to prevent this.
The administrator has disabled public write access.
|
|
|
Re:Map does not show - 2007/02/24 16:20
What do you mean with the data? The settings? Here is a list of my configuration:
component config: - map heigth: 200px - map width: 300px
mambot config: - published Yes - width: 300px - height: 200px - zoomlevel: 12 - zoomtype: large - maptype: hybrid
marker: - id: 1 - lattitude: 51.8595 - longtitude: 4.5304
map: - maptype: normal - height: 200px - width: 300px - zoom level 12 - zoom type large - show index yes - index format vertical
From the result on my site the following code is used:
<div id="googlemap_1" style="width:300px; height:200px"></div><script type='text/javascript'>//<![CDATA[ var tst_1=document.getElementById('googlemap_1'); var tstint_1; var Markers = new Array(); var MarkersInfo = new Array(); function checkMap_1() { if (tst_1) if (tst_1.offsetWidth != tst_1.getAttribute("oldValue")) { tst_1.setAttribute("oldValue",tst_1.offsetWidth); if (tst_1.getAttribute("refreshMap")==0) if (tst_1.offsetWidth > 0) { clearInterval(tstint_1); getMap_1(); tst_1.setAttribute("refreshMap", 1); } } } function getMap_1(){ if (tst_1.offsetWidth > 0) { var map_1 = new GMap2(document.getElementById('googlemap_1')); map_1.addControl(new GLargeMapControl());map_1.addControl(new GMapTypeControl());map_1.setCenter(new GLatLng(51.8595, 4.5304), 12);map_1.setMapType(G_HYBRID_MAP);var icon = new GIcon(); icon.image = "http://www.jurgenenanke.meulenbeek.net/components/com_gmaps/icons/default.png"; icon.iconSize = new GSize(12, 20); //icon.shadowSize = new GSize(22, 20); icon.iconAnchor = new GPoint(6, 20); icon.infoWindowAnchor = new GPoint(5, 1);var point1 = new GPoint( 4.5304,51.8595); var marker_1 = new GMarker(point1, icon); map_1.addOverlay(marker_1); Markers[1] = marker_1; MarkersInfo[1] = "<div class='markerName'>Ons huis in Barendrecht</div><div class='markerDescription'>Ons huis in Barendrecht Carnisselande</div>";GEvent.addListener(marker_1, 'click', function() { marker_1.openInfoWindowHtml("<div class='markerName'>Ons huis in Barendrecht</div><div class='markerDescription'>Ons huis in Barendrecht Carnisselande</div>"); }); } } function openInfoWindow(id) { Markers[id].openInfoWindowHtml(MarkersInfo[id]); } //]]></script> <script type="text/javascript">//<![CDATA[ tst_1.setAttribute("oldValue",0); tst_1.setAttribute("refreshMap",0); tstint_1=setInterval("checkMap_1()",500); //]]></script>
The administrator has disabled public write access.
|
|
|
Re:Map does not show - 2007/02/24 17:02
Jurgen, I am not sure what exactly is going on here. I'll still digging. However, after enter your configurations on my local desktop, I've attached what I see.
Chris 
Post edited by: cs1559, at: 2007/02/24 17:03
The administrator has disabled public write access.
|
|
|
Re:Map does not show - 2007/02/24 19:15
Very strange. This looks exactly the way I want it.
The administrator has disabled public write access.
|
|
|
Re:Map does not show - 2007/02/24 19:17
Can it be the google maps api key?
The administrator has disabled public write access.
|
|
|
Re:Map does not show - 2007/02/24 21:13
Jurgen, At this point, that is the only difference I see. I also wonder if it has something to do with I18N. As time permits, I'm going to dig around google to see if there are any posts about this.
Very confusing.
Chris
The administrator has disabled public write access.
|
|
|
Re:Map does not show - 2007/02/27 19:40
Have installed everything on another website (the actual production site) and there it works with all the same configuration!
The administrator has disabled public write access.
|
|
|
Re:Map does not show - 2007/02/28 22:31
Jurgen, Glad you finally got this to work! Are you running Mambo?
Re: your subdomain issues, I don't have a clue. I'd check with Google. I haven't experience any problems using the same mechanism to obtain keys for subdomains as well as additional folders off the root path (i.e. http://www.domainname.com/folder/)
The administrator has disabled public write access.
|
|