Created a new Document Type google maps seems to be working.
Save to publish document - not showing map.
So I think I have set up 80% of back office fine, and I'm missing something so that my may is formatted and displays on the page..
Is there a step by step guide avaialble or can anyone provide some guidance to what I need to look at. I think my issue could be in my template, but I'm not sure.
if (location) { value = $.trim(location); var point = location.split(','); options.lat = parseFloat(point[0]); options.long = parseFloat(point[1]); options.zoom = parseFloat(point[2]); };
var center = new google.maps.LatLng(options.lat, options.long);
var map = new google.maps.Map(this.get(0), $.extend(options, { center: center }));
var storeMarker = new google.maps.Marker({ position: center, map: map, title: "" }); }; </script> <script src="http://maps.google.com/maps/api/js?sensor=false" type="text/javascript"></script>
Yeah for the Google Maps, to get visible on the frontend you have give the map containing div a width and and height using css. It could be by using a stylesheet or by inline styling.
V6.1.2 and google maps module
Hey everyone, good morning!
I'm working with v6 recently and I'm wondering if there is allready something for use of google maps on this version?
Comment author was deleted
Think this one would still work on v6 http://our.umbraco.org/projects/backoffice-extensions/google-maps-datatype (since no breaking datatype changes have happened)
Hey Tim, going to check it.
Thanks for the feedback. Antão.
The google maps datatype still works perfectly OK.
Comment author was deleted
Great :)
Looking for some help with this... coming from wordpress so all is a little foreign but getting there!
Hi James and welcome to our,
When you say Save to publish document - not showing map, I think you mean on the frontend of your website.
Have you seen Darren Ferguson´s blogpost about how to displaying maps on your Umbraco website.
http://blog.darren-ferguson.com/2009/3/14/quick-tip-displaying-maps-on-your-umbraco-website.aspx
I have used it before and here is how my template looks like:
I had a div for the map called map_container
And the javascript looks like this: where my alias for the Google map field on the document type is googleMap
Hope this helps,
/Dennis
Thanks Dennis thats what I'm after... Yes you are right in regards to front end.
Assume we control the dimensions of the map through the class using using our CSS?
/James
Hi James,
Yeah for the Google Maps, to get visible on the frontend you have give the map containing div a width and and height using css. It could be by using a stylesheet or by inline styling.
The CSS inline in your head section:
CSS in a stylesheet:
Adding the width and height on div by using style attribute:
/Dennis
is working on a reply...