You're a helpful guy Dandrayne. Everywhere on the forum :) I'd karma you up but I don't have enough karma myself yet :) Thank you for this, you did indeed save some one10 minutes (well, lots more actually).
Hey in case anyone is adding mutliple markers to the map here is some usefull code (not written by me) for stretching the zoom level of the map ot fit all markers.
Macro for map display using v3 maps api (umb 4.1)
Howdy
Just thought I'd share a quick macro for displaying the maps using the new v3 embed code and perhaps save someone 10 minutes
First off is the "initialiase" function to go inside the <body> tag (ie <body <umbraco:macro.... )
Then we have the rendering function to stick the map out on the page. This goes in the <head> section
You'll probably want to change or get rid of "hello world"
Dan
You're a helpful guy Dandrayne. Everywhere on the forum :) I'd karma you up but I don't have enough karma myself yet :) Thank you for this, you did indeed save some one10 minutes (well, lots more actually).
Hey in case anyone is adding mutliple markers to the map here is some usefull code (not written by me) for stretching the zoom level of the map ot fit all markers.
http://blog.shamess.info/2009/09/29/zoom-to-fit-all-markers-on-google-maps-api-v3/
L
Hi!
Im trying to make this work but get the error:
Detaljerad information om felet på webbsidan
Message: 'null' is null or not an object
28
1462
Code 0
URI: http://maps.gstatic.com/intl/sv_ALL/mapfiles/api-3/4/8b/main.js
What gets rendered is this:
Ive added the two macros above to the body and the head, added the datatype result to the page.
What am i missing?
is working on a reply...