jeffreykemp / jk64-plugin-reportmap

Report Google Map APEX Plugin
https://jeffreykemp.github.io/jk64-plugin-reportmap/
MIT License
42 stars 16 forks source link

Initial Map Center - allow comma as decimal separator #72

Closed jeffreykemp closed 5 years ago

jeffreykemp commented 5 years ago

The Initial Map Center attribute currently requires the latitude and longitude values to be delimiter by a comma (,) which means this cannot be used as a decimal separator.

Instead, the plugin should allow space (" ") as the delimiter, and then interpret the numbers using the session's NLS settings so that commas are allowed as decimal separators.

If the Initial Map Center doesn't use space as the delimiter, only then should it look for a comma (,) as the delimiter.

jeffreykemp commented 5 years ago

Use apex_plugin_util.get_attribute_as_number throughout the plugin code to use the session's NLS settings to interpret all numbers (including zoom levels, heatmap attributes, latitude, longitude, and weight data).