Google Maps extension: A facility to add arbitrary code to the google maps callback.

(3 posts) (2 voices)

Tags:

No tags yet.

  1. jptreen, Member

    I hope this is possible (It's occurred to me that I am assuming you use the javascript approach I link to below):

    This would instantly allow a lot of flexibility to your google maps support.

    Specifically, I'd like an ability to add a .kml file which will let me use polygon backgrounds on my google maps, to visually define regions on a map. (but KML files can do lots of different things). I'd personally be happy with a

    select 'dbr.googlemaps.kml', 'http://example.org/regions.kml';

    command, but adding the ability to add extra javascript to the google maps callback function instead might fit other people's use cases too. (usually called 'initMap' in their examples) would also let people do a number of other things to mashup data stored locally and data which is not.

    Yours hopefully!

  2. myDBR Team, Key Master

    Hi,
    we added support for both KML- and GeoJSON-files for in the Google Maps extension. In addition to that, the map object can now be used for further customisation.

    See an example in the demo.

    --
    myDBR Team

  3. jptreen, Member

    Ah, that's brilliant, thank you for the information!


Reply

You must log in to post.