Jump to:

10997 Posts in 2731 Topics by 1822 members

All other Modules

SilverStripe Forums » All other Modules » Mappable module's LatLongField map in the CMS

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 540 Views
  • Nathan Cox
    Avatar
    Community Member
    99 Posts

    Mappable module's LatLongField map in the CMS Link to this post

    Hi, has anyone else run in to problems with the Mappable module's LatLongField's map not working in the CMS? It works as expected if you open the admin right on to the mappable page but if you navigate to it via the site tree the map doesn't work.

    It looks like the problem is that the javascript to create the map is just being written in to the content, so it's not getting run if the content is loaded via AJAX.

    Has anyone got this working or found a solution they might want to share?

  • derralf
    Avatar
    Community Member
    24 Posts

    Re: Mappable module's LatLongField map in the CMS Link to this post

    Hi,
    i've the same Problem in ModelAdmin (currently using the v3 fork from gordon banderson https://github.com/gordonbanderson/Mappable).
    Did you solve this problem meanwhile?

  • Nathan Cox
    Avatar
    Community Member
    99 Posts

    Re: Mappable module's LatLongField map in the CMS Link to this post

    No, I just ended up writing my own latlongfield for the occasion with javascript set up by livequery()

  • elgordo
    Avatar
    Community Member
    70 Posts

    Re: Mappable module's LatLongField map in the CMS Link to this post

    Nice to know my code is being used

    I've previously used another module to implement the google map editing functionality but I wish to have everything together. I've just tried the LatLngField and it is broken for v3 so I will fix that. Personally I do not like the usage of some address fields for the priming of the 'Lookup' (ie geocoding), I would prefer a free text field that can be edited for searching. Often I find with Thai addresses they do not geocode at all well.

    Watch this space

    G

    540 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.