Forum Moderators: not2easy

Message Too Old, No Replies

Forced markers with Image icon

         

toplisek

7:00 pm on May 14, 2021 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I try to make a map using forced markers with Image icon. Is this technically possible as a link does not show markers with the image icon. How to make such option as lat and ltd is is defined?

Here is the basic html format for google maps

Code:

https://www.google.si/maps/@lat,lng,15z?hl=en

lammert

7:13 pm on May 14, 2021 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Do you want a stand-alone map or a map embedded in a website? In the first case you can use Google My Maps. To embed a map in a site, the Maps Static API or Maps JavaScript API can be used.

toplisek

12:16 pm on May 19, 2021 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I try to set on official Google map URL but a marker is not shown even there are lat and lng as defined variables.

lammert

12:39 pm on May 19, 2021 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



If you use one set of lat/lng, you only instruct Google Maps where the center of the map is, not which feature you want to highlight. A trick is to use the /place/ url and add the coordinates two times. This is however a hack and Google may change their URL structure without notice. Using one of the two options I mentioned above is a better option to be future proof.

The following URL is an example of the /place/ url with a marker on the Eiffel tower in Paris.
https://www.google.com/maps/place/48.8583N,2.2945E/@48.8583,2.2945,17z/

toplisek

2:32 pm on May 26, 2021 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Thank you for the message.