List of markers in one line

Home Forums MapPress Support List of markers in one line

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #9252
    medieskolen
    Participant

    How can I show the list of markers under a map i one line in sted of two?

    I would like to do like this:

    <td class=’mapp-marker’><b>[title]</b>: [directions]</td>

    But it ends up in two lines 🙁

    How where can I change this?? In a php-file some where maybe??

    //Lars

    #9278
    Chris
    Keymaster

    Hi Lars,

    You can change the plugin code to output the list however you like: file ‘mappress_api.php’, line 500 approximately – there’s a comment above that says ‘list of locations’.

    I’m working on adding ‘templates’ to the next version to make this easier, but for now you must change the code…

    #9284
    medieskolen
    Participant

    Hi Chris

    Thanks for the answer.

    Actually I dont’ need the road-discribtion, but just the marker to show on the map  (if its not “in focus”)  and open up.

    Is it possible to make normal text links to a marker in a map in the same way the list of markers is doing?

    //Lars

    #9790
    Chris
    Keymaster

    Hi, if you’re still looking for this (or anyone else), it’s possible in MapPress 2.38.2 and higher.  There’s a javascript call you can make to open any POI.  Here’s an example to open it by postid (assuming the POIs are linked to posts) for a map named ‘mapp0’:

    mapp0.getPoiById(postid).Open();

    A ‘template’ file is also available that can be modified to change how the POI list is displayed: “map_poi_list.php” – you can copy it to your theme directory and change it there.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.