Hi @5lions,
Actually you can have multiple maps as long as each is on a different page. The Shortcode is customisable. Therefore each map can have an individual initial position and can be filtered by Types (Categories) and even markers.
Try it out and have a look under Settings > Open User Map > Help.
Best Regards,
Daniel
Thread Starter
5lions
(@5lions)
Ok – here is the problem I have now. Use case with two radically different maps.
Map 1
——
type1
type2
type3
type4
Map 2
—–
type5
type6
type7
On one page I show map #1 with shortcode like this:
[open-user-map post_id=”531″ types=”type1|type2|type3|type4″]
On another page I show map #2 with code:
[open-user-map post_id=”537″ types=”type5|type6|type7″]
Now the problem is, when someone attempts to add a new entry to one of the maps, the type pulldown shows ALL THE TYPES in a list.
But these maps are radically different.
Like “icecream store locations” versus “power outages for the city of New York”
The types=”one|two|three” correctly filters what shows up on the map im embedding but does not correctly filter the TYPE PULLDOWN menu when users add a new location. Its lists ALL types in the database, versus what the shortcut defines.
Any way to do this? or fix?
You are correct. The pulldown options should correspond to the pre-selected types. I will fix this with the next release.
Meanwhile you could use some CSS to hide the unwanted options manually:
.open-user-map .add-location #oum_marker_icon option[value="3"],
.open-user-map .add-location #oum_marker_icon option[value="4"] {
display: none;
}
Where 3 and 4 are the values of the option fields that you want to hide.
Does this work for you?
Btw. in your example you’ve used the post_id attribute. This is only necessary if you just want to show a specific location(s).
Best Regards,
Daniel
-
This reply was modified 3 years, 3 months ago by
100plugins.
Thread Starter
5lions
(@5lions)
Awesome! Thank you so much for being a responsive dev!
Yes – that little hack will work for now.
Cant wait for the update.
/fellow-software-engineer
I’m glad it works. If you are happy feel free to drop a review here. It helps me a lot to reach a broader audience.
Best wishes,
Daniel
@5lions Just for your Info: The issue with the dropdown not corresponding with the pre-selected types (Marker Categories) has been solved with the latest update (v1.2.24).
Best Regards,
Daniel