Page 1 of 1

Geolocation Field

Posted: 13 Apr 2016
by armin o
Dear Support,

can you please provide some info how to set the value of a geolocation field via java script?

How do i enable the map visualization which is used in the native sharepoint form?

Thanks,
Armin

Re: Geolocation Field

Posted: 13 Apr 2016
by Dmitry Kozlov
Hi Armin,

Please, use the following code to set the geolocation field via JavaScript:

Code: Select all

fd.field('Location').control()._el().find('input:eq(0)').val(10)
fd.field('Location').control()._el().find('input:eq(1)').val(20)
Unfortunately, this field does not support map layout in the server-side rendering mode. As an alternative, I'd recommend to consider using our Dashboard Designer to display markers or bubbles on a map:

http://www.spchart.com/demo/marker-map

Re: Geolocation Field

Posted: 14 Apr 2016
by armin o
Thanks Dmitry, it works.