Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
ananyaghosh
Creator III
Creator III

How to show pushpin in Google map

hi,

I have used scatter chart to build a google map, where I have to use pushpin instead of small rounded image. So how to do that?

19 Replies
sunny_talwar

For adding pins you can use this code in your dynamic image:

'&markers=size:mid|color:red|32.9440120,-85.9538532' &

I did it for just one spot, but you can make it dynamic by using a concat function on Latitude & longitude and separate each of them with a pipe (|)

you can specify 3 sizes: mid, tiny, and I think the third is big or large and there are different color's available too...

I hope this will help (PFA)

Best,

Sunny !

ananyaghosh
Creator III
Creator III
Author

Can u give me an sample application, so that I can view how it is implemented?

sunny_talwar

I did attach the Google Map.qvw back with my previous post. Did you look at it?

I think you are looking for this? Are you not?

Output.PNG

Best,

Sunny

ananyaghosh
Creator III
Creator III
Author

Hi,

I have used this ones

='http://maps.google.com/maps/api/staticmap?center='

&

num(var_mid_lat, '##############', '.', ',' )

&

','

&

num(var_mid_long, '##############', '.', ',' )

&

'&zoom=$(var_zoom)'&

'&markers=size:mid|color:red|'&var_mid_lat&','&var_mid_long

&

'&maptype='&var_maptype

&

'&size='&map_size_x&'x'&map_size_y

&

'&Client=gme-cushmanwakefield&sensor=false&.jpg'

But still did not get push pin for every marks on the map, so it only show one push pin. How can I show pushpin for each and every red spot on the map?



sunny_talwar

You will need to create a variable:

vVar = Concat(latitude & ', ' & longitude, '|')

and then use it something like this:

'&markers=size:mid|color:red|'& vVar (or $(vVar)) & Chr(39) &


The idea is to provide a list of latitude and longitude to markers in this form 'Lat1, Long1|Lat2, Long2|Lat3, Long3'


I have a busy day today otherwise would have helped you in the implementation in the sample data.

HTH

Best,

Sunny

ananyaghosh
Creator III
Creator III
Author

It does not work.please give me an QVW file for that. Otherwise it does not under stable to me.

sunny_talwar

Will work on a dummy file and send it to you in next couple of days

Best,

Sunny

ananyaghosh
Creator III
Creator III
Author

Can u give me to me tomorrow. I have to show it to  my clients.

sunny_talwar

I will work on this today, I hope I am not too late and will post it as soon as I am something.

Best,

Sunny