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
Multiple pins on map
-
tsupartono
- Posts: 289
- Joined: Wed Apr 18, 2012 10:21 am
Re: Multiple pins on map
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:
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
-
MegumiSawada
- Posts: 268
- Joined: Tue Feb 19, 2013 5:18 pm
Re: Multiple pins on map
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
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
-
tsupartono
- Posts: 289
- Joined: Wed Apr 18, 2012 10:21 am
Re: Multiple pins on map
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.
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.