Page 1 of 1
Multiple pins on map
Posted: Thu Oct 06, 2016 11:05 pm
by MegumiSawada
Hi,
It seems the PIN1 got focused when formview is loaded if multiple pins are on the map .
Is it possible to put the current location to the center of the map?
Or is it possible to set focus to the specified pin(e.g. PIN3)?
Best Regards,
Megumi Sawada
Re: Multiple pins on map
Posted: Fri Oct 07, 2016 7:48 am
by tsupartono
It's possible to focus on a specific pin. Use the
CurrentPinID property to do so.
The currently selected pin will be displayed at the center of the map when the map first appears.
Example of usage in RDMLX:
Code: Select all
#COM_OWNER.Using Element('/Form.Fields.MyMap')
#COM_OWNER.Set Property(CurrentPinID) To('PIN3')
#COM_OWNER.EndUsing
Re: Multiple pins on map
Posted: Wed Oct 12, 2016 9:07 pm
by MegumiSawada
Hi Tony,
Thanks for your advice.
I can put PIN3 in the center of the map.
Is it possible to put pin on current location and put it in the center of the map?
I'm struggling but haven't succeeded in it.
I appreciate your kind advice.
Best Regards,
Megumi Sawada
Re: Multiple pins on map
Posted: Thu Oct 13, 2016 7:25 am
by tsupartono
You can use the GetGeolocation operation to first get the coordinate of the current location, and then add a pin with that coordinate.
http://www.longrangemobile.com/docs/lrp ... cation.htm
But if don't really need to add a pin for the current location (you really just want to center the map on the current location), we can enhance LR so that you can specify what the map should be centered on initially (either selected pin, or current location). If you'd like to have this feature, please submit an enhancement request to LANSA Support.