Home › Forums › MapPress Support › Mashup map displays every POI from a single map
- This topic has 9 replies, 4 voices, and was last updated 9 years, 10 months ago by
westfallworks.
-
AuthorPosts
-
March 27, 2013 at 2:02 am #12086
slace23
ParticipantHi, is there anyway not to display every marker (POI, KML track) which is placed on a single map within the mashup map? For example having a post and a map with 1 track (KML) and 8 POIs. That multiplicated with 100 posts would be messy map, especially if there posts are based next to each other.
Would just need to display the main marker which could be named in a special way or something. I call my mashup likes this:
[mashup query=”all” width=”800″ height=”600″]
Thanks!
March 28, 2013 at 8:57 am #12100Chris
KeymasterHi,
Sorry but no, that’s not supported by the plugin . If you would like to code it in PHP, you can use an action like ‘mappress_map_display’ to adjust the mashup before it’s displayed:
http://mappresspro.com/mappress-documentation#toc-filters-and-actions
What you described also sounded like ‘marker clustering’, which is a popular feature request I’m already working on.
September 4, 2013 at 9:45 pm #13281matteo.desanti@cmela.it
ParticipantHi Chris,
i have exactly the same problem.
Please update me too when this feature become available.
Can I ask you to provide an example of the action based on ‘mappress_map_display’?
Thanks!Matteo
September 4, 2013 at 9:50 pm #13282slace23
ParticipantIn the meantime we spend many hours on this and have own coding on this topic which solves the task for us… I could provide it.
November 8, 2013 at 4:03 pm #13714westfallworks
ParticipantDid we ever find a solution to this? slace23 did you code your own version that works?
I want to have a mashup map that shows a POI for each page with a map on it.
November 8, 2013 at 8:11 pm #13717slace23
ParticipantI have my own code which works fine. We added a checkbox to the POI desription called “show on mashup map”.
November 9, 2013 at 2:56 pm #13727westfallworks
ParticipantAre you sharing that code? Or are you selling it? I’d LOVE to be able to do this too!
November 10, 2013 at 7:58 am #13735slace23
ParticipantI could share it – dont know if paying is legal concering the licence.
Chris, are you planning to put it in?
November 10, 2013 at 8:31 am #13736Chris
KeymasterHi,
The license prohibits reselling the code but if you’d like to share add-on code with each other feel free – please email each other directly rather than posting here.
I have a lot on my development list already so I don’t yet have plans to limit searching to only the first POI from a map (other than the filter I mentioned).
I don’t know if it will work for you, but one workaround is to just use two different posts:
Post A – the main post. Create a map with a single main searchable location here.
Post B – a second post. Create the full map with all locations here.In Post A, add a shortcode to display the map from Post B using [mappress mapid=123]. When users view Post A, they will then see the full map. But for searches, only the single location that is actually attached to Post A will appear.
Post B can be excluded from queries by assigning it to a custom post type, different category, etc.
November 10, 2013 at 12:10 pm #13737westfallworks
Participantslace23, please email me at ken@westwarddigital.com and we can share, if you’re willing. Thank you!
-
AuthorPosts
- You must be logged in to reply to this topic.