100plugins
Forum Replies Created
-
Forum: Plugins
In reply to: [Open User Map] It is possible to access the Markers?Hey @svenatkins,
Let’s stick to english so that most people could read along (thanks for the german translation though).
Unfortunately this will not work like you want it to. If you just zoom-in on some coordinates on the map there is no relation to the markers that may (or may not) exist on this specific point.
You need to address the markers directly with a post_id (POPUP_MARKER_ID):
oumMap.eachLayer(function(layer){ if(layer.options.post_id && layer.options.post_id == POPUP_MARKER_ID){ if(!layer._icon) { oumMap.fitBounds(layer.__parent._bounds); }else{ oumMap.setView(layer.getLatLng(), 9); } layer.openPopup(); } });So don’t use the oum.flyTo in your code. Instead use the snippet from above with the correct post_id (POPUP_MARKER_ID).
Best Regards,
DanielForum: Plugins
In reply to: [Open User Map] How edit marker size with CSS ?@mengeco Can you do me a favour and start a new support thread? Otherwise it could happen that this new topic will be deleted by the forum admins. Then it’s easier for other users to find this topic for sure. I will reply asap in the new thread.
Thanks,
DanielForum: Plugins
In reply to: [Open User Map] How edit marker size with CSS ?I just at a look on your page and seems to work now? Just one advise:
Don’t forget to addmargin-left: -50px !important;The value should be half of the marker width. This ensures the icon is perfectly centered.
Best Regards,
DanielForum: Plugins
In reply to: [Open User Map] How edit marker size with CSS ?Hi @mengeco,
Can you send me the link to your map (please use the “Page I need help with” field)? I can have a look what’s happening there. It should work.
Best Regards,
DanielForum: Plugins
In reply to: [Open User Map] what if one does not renew PRO subscriptionHi @baignoire,
If you don’t renew subscription the plug-in will keep its current PRO features and everything will still work. But you will miss future updates and direct support.
Best Regards,
DanielAwesome!
If you are happy please consider dropping a quick review over here. This helps me a lot to reach a broader audience.
Thanks and Best Regards,
DanielForum: Plugins
In reply to: [Open User Map] It is possible to access the Markers?Hi @svenatkins,
The “zoomend” fires after any zoom event (see here). It doesn’t contain any info on markers.
If you want to access all the available markers you could do this by:
oumMap.eachLayer((layer) => { //do something with layer (=marker) })Best Regards,
DanielForum: Plugins
In reply to: [Open User Map] How edit marker size with CSS ?Hi @mengeco,
Thanks for reaching out! Yes it is. Please see this support thread on how to do this.
Best Regards,
DanielHi @hhuesca,
You can use this CSS to set the color generally:
.open-user-map .leaflet-geosearch-bar form input::placeholder { color: red; }And you can use this CSS to set the color on the map specifically in the popup:
.open-user-map .add-location .location-overlay-content #oum_add_location .map-wrap #mapGetLocation input.glass::placeholder { color: red; }If you are happy with the plugin please consider dropping a quick review here. It helps me to reach a broader audience. Thanks!
Best Regards,
DanielHi @sunes,
Maybe something went wrong with my reply or maybe the forum moderation removed it because it’s meant to be a separate thread. Or I just missed something. I don’t know.
However – here is my response on your request:
You can have separate maps with individual markers. To do this you should use “Marker Categories”. You can activate this feature under Settings > Open User Map > Form Settings > Filterable Marker Categories.
Consider to have the following setup:
Page 1: Use Shortcode [open-user-map types="categoryA"]. Page 2: Use Shortcode [open-user-map types="categoryB"].Doing so, the locations being added on each page will be attached to the individual categories. And the Map on each page will only show locations of this specific category.
Using the shortcode attribute
post_idmakes no sense here. You only want to use it if you’d like to show a single location (post_id) on a map. But I think this is not what you are trying to achieve.Does this work for you?
Best Regards,
DanielForum: Plugins
In reply to: [Open User Map] Only one map per website???@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,
DanielForum: Plugins
In reply to: [Open User Map] Add a New Location FormHi @hhuesca,
Glad it worked. To solve the other issue you should find some CSS code where the ::placeholder is generally set to be white.
Alternatively you could add this snippet, which overwrites the placeholder (label) color for the form:
.open-user-map .add-location .location-overlay-content #oum_add_location input[type=text]::placeholder, .open-user-map .add-location .location-overlay-content #oum_add_location input[type=email]::placeholder, .open-user-map .add-location .location-overlay-content #oum_add_location input[type=url]::placeholder, .open-user-map .add-location .location-overlay-content #oum_add_location textarea::placeholder, .open-user-map .add-location .location-overlay-content #oum_add_location select::placeholder { color: #333; }Best Regards,
DanielHi @hhuesca,
Yeah, shouldn’t be a problem. Try to add this CSS code to your styles:
.open-user-map .leaflet-geosearch-bar form { background-color: red; } .open-user-map .leaflet-control-geosearch a.reset { background-color: red; } .open-user-map .leaflet-control-geosearch .results { background: none; }And to make the Icons square (please make sure you’ve uploaded a square icon):
.open-user-map .leaflet-marker-icon { width: 40px !important; height: 40px !important; margin-left: -20px !important; }Does this work for you?
Best Regards,
Daniel- This reply was modified 3 years, 8 months ago by 100plugins.
- This reply was modified 3 years, 8 months ago by 100plugins.