Geo Mashup
[resolved] Multiple articles with same Location and Category get default Pin on Map (2 posts)

  1. dfreax
    Posted 3 years ago #

    Hi, I use Geo Mashup (a great plugin) on this page. On my page there are two authors that travel around the world – sometimes together and sometimes alone. There are three categories set up and in Geo Mashup each category get's a pin in a different color. Category 1 = Author 1 (yellow pin); Category 2 = Author 2 (blue pin); Category 3 = Both together (black pin - same pin as the default pin).
    Author 1 now wrote 3 articles at the same location (New York). All three posts have just "Category 1" as category. But since there are multiple articles, Geo Mashup shows the default pin on the map (which is black). It would be cool if the plugin would show the correct pin if all posts have the same category. Any solution on this?


  2. Dylan Kuhn
    Plugin Author

    Posted 3 years ago #

    Geo Mashup by default uses an icon with a plus sign when there are multiple items in one location.

    You can implement more complex rules to choose which marker to use with the multiObjectMarker action in your custom.js file. There's a simple example of that action here:


    You could look at the results of GeoMashup.getMarkerObjects( marker ) and decide based on your criteria which marker icon to use.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic