ryderp

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: Map Ready #13961
    ryderp
    Participant

    Chris,

    My map is mapp0

    I tried adding the following after mapp0.display in mappress.php

    var prmap = window.mapp0.getMap();
    alert(prmap)

    The alert gives me a null value for prmap

    In the windows console this gives an error

    TypeError : a is null

    in line 14 of main.js – shown below

    No need to spend lots of time on this. My workround works (but is ugly!). I was hoping this might turn out to be a quickie…

    function le(a,b,c){var d=a[Lb](“head”)[0];a=a[xb](“script”);Va(a,”text/javascript”);a.charset=”UTF-8″;a.src=b;c&&Ra(a,c);d[eb](a);return a}function me(){return k.devicePixelRatio||fa.deviceXDPI&&fa.deviceXDPI/96||1}function ne(a,b){if(ba[F][Wb][Qc](a,b))return a[b]};var oe=this;var pe=”click”,qe=”contextmenu”,re=”dblclick”,se=”mousedown”,ve=”mousemove”,we=”mouseover”,xe=”mouseout”,ye=”mouseup”,ze=”forceredraw”,Ae=”rightclick”,Be=”staticmaploaded”,Ce=”panby”,De=”panto”,Ee=”insert”,Fe=”remove”;var O={};O.Qe=”undefined”!=typeof ga&&-1!=ga.userAgent[Xc]()[rc](“msie”);O.Wd={};O.addListener=function(a,b,c){return new Ge(a,b,c,0)};O.xf=function(a,b){var c=a.__e3_,c=c&&c[b];return!!c&&!Jd(c)};O.removeListener=function(a){a&&a[wb]()};O.clearListeners=function(a,b){Id(He(a,b),function(a,b){b&&b[wb]()})};O.clearInstanceListeners=function(a){Id(He(a),function(a,c){c&&c[wb]()})};function Ie(a,b){a.__e3_||(a.__e3_={});var c=a.__e3_;c[b]||(c[b]={});return c[b]}

    in reply to: Map Ready #13946
    ryderp
    Participant

    Chris

    The issue with that is mapp0.getMap doesn’t work as mapp0 is undefined in my onload procedure. I could do with a way to see when mapp0 is available… not sure if that’s possible though..?

    Cheers, Paul

    in reply to: Redraw map POIs with AJAX or JS method #13786
    ryderp
    Participant

    Chris,

    I’m trying to do something similar. I’m using the latest pro version and a shortcode similar to

    [mashup query="cat=all"]

    Is there any way I can reload the POIs based on a different category without reloading the page. i.e. When a checkbox “Green” is checked then the query changes to the equivalent of

    [mashup query="cat=green"]

    I guess I’m looking for a call such as mapp0.setQuery()

    Fantastic plugin BTW… would be lost without it (no pun intended!)

    Cheers, Paul

Viewing 3 posts - 1 through 3 (of 3 total)