Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

RB16 XE7 - Need example for GMAP + MARKERS

edited November 2014 in General
Hi

I'm using RB16 with XE7

I need any example of code for to use GMAP component and Params property
for add any MARKERS, please.

like this:

markers=[
{
latitude= -2.2014,
longitude= -80.9763,
html= "_latlng"
},
{
address= "Guayaquil, Ecuador",
html= "My Hometown",
popup= true
},
{
address= "Galapagos, Ecuador",
html= "_address"
}
]

..
icon={
image= "images/gmap_pin_orange.png",
iconsize= [26, 46],
iconanchor= [12,46]
}



Mauro Botta

Comments

  • edited November 2014
    Hi Mauro,

    The GMap component uses the Google Static Maps API and the Params
    property allows you to use any parameter that isn't included natively
    with the component.

    Below is the link to the developer reference that we used to create the
    component. I believe you will want to look at the "Adding Markers" section.

    https://developers.google.com/maps/documentation/staticmaps/index

    Another customer has recently used markers with the component
    successfully. Here is the entry used for various markers in Italy.

    Params.Add('markers=color:blue%7Clabel:P%7Cvia%20dante%207%20milano%7cvia%20milano,%204%20roma');

    This is the first release of this component so any feedback is welcome.
    I already appears the a "Markers" list property would be a good
    addition. Please let me know what else you would like to see added.

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.