In the Control Panel. I get the same message in Safari and Firefox.
Ok, if it’s definitely not reporting any script errors (Firebug is the best way to check this), the most likely cause is that the page hasn’t actually finished loading at that point.
What with the jQuery libraries and the Google Map scripts it’s a big chunk of JS, and the actual loading of the map (and replacement of the “no JS” message) can’t take place before everything has finished loading.
Could you try it again, and just double-check that the page has completely finished loading please?
Thanks, Stephen
The page appears to be completely loaded and Firebug does not seem to report any errors (I am not completely conversant with Firebug, but I can’t see anything amiss) nor does Safari’s web inspector panel.
Ok, thanks for checking.
I’m struggling to come up with any helpful suggestions, without seeing the problem first-hand. If you can IM me the CP login details, I’ll have a look and see if I can locate the problem.
Cheers, Stephen
Hello all,
I’ve just rolled out version 1.0.8 of SL Google Map, which now includes support for different map types (satellite, hybrid, etc) in both the standard templates tag, and Stand-Alone Entry Forms.
As ever, there’s full documentation on my site.
Cheers, Stephen
Hello all, I’ve just rolled out version 1.0.8 of SL Google Map, which now includes support for different map types (satellite, hybrid, etc) in both the standard templates tag, and Stand-Alone Entry Forms. As ever, there’s full documentation on my site. Cheers, Stephen
Hi Stephen,
Absolutely excellent! Thanks for the update. I was just wondering one last thing though if I may? Is it possible instead of deciding for the user which view they get to actually show the controls much like they get on maps.google.com so that they can choose for themselves which view they would like. Perhaps we could set which they initially get to view on the rendered template but then they can have the choice?
Don’t know if that’s possible though?
Best wishes,
Mark
Hi Mark,
I was just wondering one last thing though if I may? Is it possible instead of deciding for the user which view they get to actually show the controls much like they get on maps.google.com so that they can choose for themselves which view they would like. Perhaps we could set which they initially get to view on the rendered template but then they can have the choice?
You can do that with the new version. Assuming your custom field is called “map”, you can display the default map types menu like this:
{map controls="map_type"}...{/map}
If you’d like a bit more control, you can also specify exactly which map types should appear in the menu and / or the default map type to display.
{map controls="map_type" map_types="satellite|hybrid|normal"}...{/map}
In the previous example, the map types menu will contain the satellite, hybrid, and normal map types, and will display the satellite map by default.
Full details of all the available parameters are provided in the docs.
Cheers, Stephen
Hi Brad,
Thanks again for your help! Works a treat so far.
Good stuff.
Question: Is there an easy way to link a map to the Google maps site so visitors could see a larger map and receive directions?
This comment may be of use to you. There’s nothing built-in, but all the information for both the map and the pin is easily available, so it should be possible to construct whatever URL is required.
Let me know if that doesn’t answer your question.
Cheers, Stephen
First, I want to say that Stephen… you put out some beautiful extensions. And this one appears to be no exception. Thank you for your excellent efforts!
A quick question because I have only so far watched the screencasts and have yet to do any real world testing with it.
I have a weblog that allows authors to enter GPS coordinates into two text fields - Longitude and Latitude. The system does not supply them the coords… they need to look them up elsewhere.
The template pulls in the coords and displays the location link accordingly.
<a href="http://maps.google.com/maps?ll={latitude},{longitude}&spn=0.006130,0.009795&t=k&hl=en">
If I understand the correct way to use this extension… can I auto populate these existing fields in the backend where an editor simply drags the pointer on the map to the desired coordinates?
Hi Todd,
Thanks for the kind words – you’re guaranteed a response after that opening 😊
If I understand the correct way to use this extension… can I auto populate these existing fields in the backend where an editor simply drags the pointer on the map to the desired coordinates?
That’s not quite how it works.
In brief, the extension stores the map latitude, longitude, and zoom, and the pin latitude and longitude in a simple text field behind the scenes. If you were to look at the data stored for an SL Google Map in the database, you’d see that it’s a simple comma-delimited string.
So, if you need to take the existing coordinates, and convert them for use with SL Google Map (or vice-versa) as a one-time operation, you could easily write a script that does the necessary database updates.
However, there’s no (built in) way to keep the SL Google Map extension “in sync” with separate latitude and longitude fields.
Regarding the example code you gave, this can be easily replicated as follows (assuming your custom field is called “map”):
{exp:weblog:entries weblog="locations"}
{map}<a href="http://maps.google.com/maps?ll={pin_lat},{pin_lng}&spn=0.006130,0.009795&t=k&hl=en">{/map}
{/exp:weblog:entries}
I hope that answers your question. If not, just let me know…
Cheers, Stephen
P.S. I’m an even more lowly lab assistant. When do we get to graduate to the next level?
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.