• Resolved Wizard

    (@badmp3)


    Is there any built in way for a 3rd party website to link to a custom marker on my map?

    Something like

    map?marker=123

    map?lat=37.7749&lng=-122.4194

Viewing 15 replies - 1 through 15 (of 21 total)
  • Plugin Author hupe13

    (@hupe13)

    Like in this example?

    Thread Starter Wizard

    (@badmp3)

    No, nothing like that…

    Like there are people who are making blog posts on there own websites about my map…

    They want to be able to link to Markers on my map from there website, so a user reads their guide, and the guide says check out the map, click here to see where XYZ is located, and that is a URL going to my website, which then shows this marker location.

    Plugin Author hupe13

    (@hupe13)

    You seem to know php. So it should not be difficult for you to process lat and lng from the query string and create a map:

    <?php
    do_shortcode('[leaflet-map lat='.$_GET['lan'].' lng=.'.$_GET['lng'].' zoom=...]');  // or fitbounds
    do_shortcode('[leaflet-marker visible]Interesting Point[leaflet-marker]');

    (or similar)

    Thread Starter Wizard

    (@badmp3)

    Why are you posting this here, and not adding it as a extra feature to the plugin set you have created?

    Dont you think many other people would find this useful to have ?

    Basically people can link to their maps, to the custom markers etc?

    You should also consider adding in the other stuff..

    A Hide Side Menu Option
    A Show All / Hide All Marker buttons

    And prob a way to create translate Markers option for multi lang support..

    All of this would make a jam pack UBER set of features on top of what is already there..

    Plugin Author hupe13

    (@hupe13)

    Dont you think many other people would find this useful to have ?

    Basically people can link to their maps, to the custom markers etc?

    So far, no one has expressed a desire for such a function. It’s usually the other way around: people have a large map and want to know more about a marker. But I will at least publish the code on my example page.

    A Hide Side Menu Option

    I don’t know what you mean specifically. Which Side Menu? Can you give an example?

    A Show All / Hide All Marker buttons

    Do you mean a thing like this, but with all markers? This can I include in the plugin.

    And prob a way to create translate Markers option for multi lang support..

    What do you want to translate?

    • This reply was modified 10 months, 3 weeks ago by hupe13.
    Thread Starter Wizard

    (@badmp3)

    A Show All / Hide All Marker buttons

    | Do you mean a thing like?this, but with all markers? This can I include in the plugin.

    Yes, the side menu here it shows Dashicon, Default, Green or on the other map Green, Red, Blue

    Please consider adding a Option On the Top of that for

    Show All / Hide All – https://i.imgur.com/raE478T.jpg

    You have this already in some fashion with “Visible” Groupings, make this a option to be included so people can Turn On or Off all the markers very fast, instead of having to click on each group.

    And then add a way to close that Legend / Side Menu

    You have this already as “Collapse”, Turn this Into a Button that is on the Side Menu, so people can Collapse it if they dont need it

    Plugin Author hupe13

    (@hupe13)

    Please consider adding a Option On the Top of that for

    Ah, you mean nested groups, right?

    And then add a way to close that Legend / Side Menu

    You have this already as “Collapse”, Turn this Into a Button that is on the Side Menu, so people can Collapse it if they dont need it

    Every control has a option “collapsed” (if applicable) since recently. I can’t provide a “Button”.

    Thread Starter Wizard

    (@badmp3)

    Hmmm the Nested Groups seems interesting, what is the shortcode for that ?

    I don’t see this listed in examples, do you happen to have one?

    Plugin Author hupe13

    (@hupe13)

    There is not a shortcode for that (yet).

    Plugin Author hupe13

    (@hupe13)

    There is a new shortcode parentgroup in the Github version: Nested Groups

    Thread Starter Wizard

    (@badmp3)

    Nice!

    Any movement on adding in the URL Parameters so people can make Custom URLs on 3rd party websites directly to Markers on the map?

    Like right now lets say I wanted to focus on the _Red Marker

    Having a URL like this
    https://leafext.de/grouping/nested-groups/?marker=__Red

    That then automatically goes to that marker will be extremely helpful for Large Maps with hundreds of markers.

    ?marker=
    ?lat= & lng=

    etc

    Plugin Author hupe13

    (@hupe13)

    Any movement on adding in the URL Parameters so people can make Custom URLs on 3rd party websites directly to Markers on the map?

    It takes time …

    Plugin Author hupe13

    (@hupe13)

    Please test the Github version. Documentation and examples.

    See also https://leafext.de/en/doku/about/versions/

    • This reply was modified 10 months, 2 weeks ago by hupe13.
    Plugin Author hupe13

    (@hupe13)

    Version 4.0 released.

    Thread Starter Wizard

    (@badmp3)

    Awesome!

    I would put one more suggestion for this feature, can the POP UP for each marker have a Small Link ICON that lets a user click on it, which then Autogenerates the URL so they can give it to other people?

    Here is a example of it from another project –> https://i.imgur.com/JTuTumT.png

    This way anyone using the maps, can generate a link for the markers and give it to other people!

Viewing 15 replies - 1 through 15 (of 21 total)
  • The topic ‘3rd Party Website URL link to a Marker on my map?’ is closed to new replies.