Page 1 of 1

List of Adresses in google maps

Posted: Fri Jan 25, 2019 8:15 am
by m400mail
Hello to all,

i want to display one or more adresses in my goggle maps iframe.

i have created an example from the puisample programm and it runs with one adress.

can i display more than one ?

For example:
DSPScreen01.Adress = 'Karl-Arnold-Platz 1a+Duesseldorf+40474';

DSPScreen01.MapUrl = 'http://maps.google.com/maps?output=embed&hl=del&q=';
DSPScreen01.MapUrl = %Trimr(DSPScreen01.MapURL) + %trim(DSPScreen01.Adress);


thanks for your help

Re: List of Adresses in google maps

Posted: Fri Jan 25, 2019 1:42 pm
by Megan
Hello Michael,

Because this has to do with Google Maps, you'll need to refer to Google's documentation on it's API and URL construction. The following links may contain some information that may help you.

URL Encoding: https://developers.google.com/maps/docu ... l-encoding

JavaScript Marker Clustering: https://developers.google.com/maps/docu ... clustering

Documentation Start Page: https://developers.google.com/maps/documentation/

Example from https://stackoverflow.com/questions/177 ... oogle-maps:

Code: Select all

http://maps.google.com/maps/api/staticmap?center=Brooklyn+Bridge,New+York,NY&zoom=14&size=512x512&maptype=roadmap
&markers=color:blue|label:S|40.702147,-74.015794&markers=color:green|label:G|40.711614,-74.012318
&markers=color:red|color:red|label:C|40.718217,-73.998284&sensor=false&key=MAPS_API_KEY
You will need to ensure that special characters are properly encode for the URL when using it.
Pipe characters (|) are encoded as %7C.
Spaces ( ) are encoded with plus signs (+) or %20.
Commas (,) are encoded as %2C.

Depending on what you are looking to achieve, you may find that a JavaScript solution may be better than sending a new request URL to Google Maps each time you want to update the map.

We hope this helps! If you have any questions or concerns, please let us know and we'll be happy to help!

Thanks,