Focal Point
[CLOSED]Get multiple fields and values to show in hover on openstreetmap

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/8267066386

August 31, 2016, 05:53 PM
TomS.
[CLOSED]Get multiple fields and values to show in hover on openstreetmap
I'm trying to add information to the popup box when hovering over a point on a map. We are using openstreetmaps (offline). developing in 8.0.7

I'm able to map one SUM field and one BY field. I'd like to more sum fields added and shown in the hover but am not having any luck.

Any guidance would be appreciated.

Thanks,
Tom

This message has been edited. Last edited by: <Emily McAllister>,


WebFOCUS 8.0.07 and 8.2.01M
UNIX, WINDOWS, ORACLE
PDF, CSV, Excel, TXT, XML, HTML
August 31, 2016, 06:21 PM
Waz
Assuming there is an API for openstreetmaps, I would look there first.

Hoping that you can do something at JS level.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

September 06, 2016, 11:09 AM
TomS.
So I'm able to get the titles and information showing how I want it using the following...

*GRAPH_JS
series:[
{series: 'reset', tooltip: function(v, s, g) {
location_code = chart.data [0][0];
return '<b>Location:</b>' + location_code + <br> + 
'<b>Annual Rent: $</b> this.formatNumber(v,'#');}}]
*end


The problem is I can only get the two fields into the chart.data on the map.


WebFOCUS 8.0.07 and 8.2.01M
UNIX, WINDOWS, ORACLE
PDF, CSV, Excel, TXT, XML, HTML