Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

GeoJSON layer from JS datatype ?

F.MatzMar 11 2020 — edited Mar 18 2020

Hi,

I am trying the Oracle Maps 12.2.1.3 template demo incl. own local GeoJSON offline file as data uri and it works fine,

built from my Cloud ORDS. 

(data uri defined in config.json of the template demo)

Now I would like to use the ORDS as GeoJSON service for it,

(change the uri in config.json::

"vectorLayers": [{

        "dn": "blocks",

        "uri": "https://..adb.eu-frankfurt-1.oraclecloudapps.com/ords/../v_blocks",

)

but ORDS sends me header and trailer data wrapped around the included plain GeoJSON.

Is there a way, that I can create the GeoJSON layer dynamically with my own getter function:

var geoData = getGeoJSONfromORDS();    // GeoJSON := jsonData.items[0].feature;

geojsonLayer = getVectorLayer(geoData);

map.addLayer(geojsonLayer);

.. ???

It would be great if there was a simple solution for ORDS GeoJSON and Oracle Maps.

Thanks and regards,

Friedhold

This post has been answered by Lqian-Oracle on Mar 16 2020
Jump to Answer
Comments
Post Details
Added on Mar 11 2020
3 comments
288 views