I have been using Google maps with manually entered coordinates into custom fields, but I am so exited about the possibilities with this extension.
Something I want to do is add a link to a full window on Googlemaps, I have the link code that works (opens a new window with a marker and adds the entry Title to the pop-up box):
But it doesn’t work if you want to have a map displayed as well. The link works but the code to display the map just shows up in the browser as text and no map. It seems that you can’t have two calls for the same data. Any solutions?
Also any news on being able to have the map type choice saved when you Publish?
I have noticed another issue that may be a Firefox problem as it works OK in IE7.
If you set the field to show by default to NO, then when you open the field in the publish page the map does not render properly. It doesn’t fill the box and is a bit erratic when dragging.
I have now tried using a SAEF to publish new posts and the Google map doesn’t show at all.
Looking at the generated code there is no javascript for the map generation.
Any one else had this problem?
Another lurking fan who’s finally come out of the closet….
Was wondering if anyone could suggest how I could replace the default GLargeMapControl() constructor with the tidier GSmallMapControl() in the GControl object.
I’m no JS expert so I was hoping that the container div for the constructor would have a class hook that I could easily operate on via css. Unfortunately it’s a nameless element. So it seems like I have to get (someone else) dirty with the DOM to pass and replace the offender.
Brilliant, but how strange and coincidental. I only just found it myself literally a few minutes ago before checking the thread and your helpful reply. Seems I’m not receiving updates from this post.
Now I’ve got another head scratcher: my maps aren’t displaying. And it’s not as a result of the teeny modification to the GSmallMapControl switch. It broke prior to the tweak. On the surface everything seems to be working: the extension displays in the publish page, the {longitude}{latitude} _raw data gets displayed on the frontend. Looking at the generated source html I see that the crucial initial script with the key
I’ve solved the problem with wanting to reference the map twice in a page.
I wanted a hyperlink to another map service and to show the Google map.
You need to have each request within its own weblog entries tag.
“mapref” is the name of my field that stores the data.
For example this is the code to link to Microsoft’s Live maps:
{exp:weblog:entries weblog="{my_weblog}" limit="1} <a href="http://local.live.com/default.aspx?v=2&cp;={mapref_raw}{latitude}{/mapref_raw}~{mapref_raw}{longitude}{/mapref_raw}&style=h&lvl=15"> MS Live maps</a> {/exp:weblog:entries}
You can use the _raw links several times within one weblog tag, but the standalone map link must be in a separate one.
You can see it working here.
after experiencing some problems when using this plugin inline, I’d like to create a link to google maps or maybe use some lightbox script. I understand that in need to pass all the necessary parameters to the script or google maps window. what I was wondering whether there is a way to use this
I definitely don’t want to take away the thunder from Marks work here as he is fantastic at what he does but I had to go looking for another option as I just could not get this to work no matter what I did and was just wondering if anyone had ever come across Phoogle Maps before?
I have used this and it seems to work very well. It also means that if you have clients typing in the address then they don’t have to find out the Lat / Long co-ordinates first which is a great boon!
Perhaps Mark could roll this kind of API into his work here?
after experiencing some problems when using this plugin inline, I’d like to create a link to google maps or maybe use some lightbox script. I understand that in need to pass all the necessary parameters to the script or google maps window. what I was wondering whether there is a way to use this
Mark, If you are interested i can send you a few updates i added
1: map loads Using the Google AJAX API Loader
2: added Terrain Map type
3: Mouse Wheel zoom in and out
4: Double Click zoom in and out
5: mouse over Show/Hide Map Type Control
I’m having some trouble with the default output on the template, probably because I’m outputting the map into a tab in a set of tabs. I still need to do a little testing, but I was wondering how easy it would be to get the other variables out of the extension, like this:
or something like this. I feel like the code that is being output in the middle of the template (I’m somewhat of a Javascript-keep-it-outta-my-template purist) might be screwing with the tabs, so the whole map isn’t showing (I’m using jQuery). What I’m ultimately trying to do is feed the map and marker info to the jQuery googlemaps plugin to keep all the JS out of the markup.
Sorry if this has been covered, but I couldn’t read every post in this thread.
Here sometime soon, I’ll be needing the ability to add a custom field to a weblog which will hold an address. With this extension, can I output a Google map based upon the address in the custom field so it will flag that address on the map?
I just ran into a little trouble: with GeoCoordinates installed the Edit Categories link in the Publish form disappears. Anyone else experience this? Or could it be a combination of other factors and/or installed extensions?
Sorry if this has been covered, but I couldn’t read every post in this thread.
Here sometime soon, I’ll be needing the ability to add a custom field to a weblog which will hold an address. With this extension, can I output a Google map based upon the address in the custom field so it will flag that address on the map?
I get a text field on mine and it almost works but not quite. My address here centers on the ocean and not my house!