the beauty of mapping


Kode Iklan Disini

Friday, October 9, 2020

New Information Layer For The Google Maps Api


The Google Maps API straightaway has a novel Data Layer which makes it really slow to add together GeoJSON to your Google Map creations.

Using the novel Data Layer alongside merely 1 business of code yous tin give notice add together a GeoJSON file to your map. The specific business of code looks similar this:

map.data.loadGeoJSON(‘filename.json’);

With that 1 business of code yous tin give notice charge information onto your Google Map. You tin give notice thence role the new

Data.setStyle()

characteristic to mode how the information looks on the map. The mode characteristic allows yous to role custom markers, fill upwards colors together with opacity levels for polygons, together with business color together with business weighting alongside polylines.

The novel Data Layer likewise allows yous to add together information upshot handlers to your data. The upshot handlers include mouse-over together with mouse click events.

You tin give notice acquire to a greater extent than most the novel Data Layer inwards the Google Maps Javascript Documentation, alongside present maps for each of the novel features.