**Note**: You can use `type: 'topojson'` when loading TopoJSON maps.
### g1.mapviewer options
...
...
@@ -1140,7 +1193,7 @@ attribute.
- tile
- geojson
- topojson
- marker
- marker (`link`: option is not yet supported )
- circleMarker
-`tile` layer MUST have a url: that has the URL template for the leaflet tile layer.
-`url`: A string of the form - `http://{s}.somedomain.com/blabla/{z}/{x}/{y}{r}.png`
...
...
@@ -1179,6 +1232,11 @@ attribute.
-`longitude`: String (mandatory). Must be column name that contains longitude of marker
-`options`: supports same options as [circleMarker options](http://leafletjs.com/reference-1.3.0.html#circlemarker-radius)
-`attrs` same as `attrs` for `geojson` type layer
-`drilldown`:
-`rootLayer`: `geojson/topojson` layer that acts as root layer to drilldown further.
-`levels`: Array of objects that provides layer info
-`layerName`: Can be a string or function. Function takes argument as `properties` of parentLayer feature
-`layerOptions`: Same as layer options in `layers` option. If `url` is function, `url` takes argument as `properties` of parentLayer feature
-`zoomHandler`: <!-- TODO -->
-`zoomlevel`: must be a `geojson` layer name or function. If given a `geojson` layer name, shows this layer and hides all other `geojson` layers. Optimize this to load only layer that is visible in viewport.
...
...
@@ -1188,9 +1246,9 @@ Zooms map view to fit the layer. Supports same options as [fitBounds options](ht
### g1.mapviewer events
-`mapload` is fired when all the map layers are loaded.
-`layersload` is fired when all layers are saved in mapviewer.gLayers
- tooltip is rendered on each layer only after layers are loaded.
-`layersloaded` is fired when all layers are saved in mapviewer.gLayers (used interally).
- tooltip is rendered on each layer only after `layersload` is fired
-`layerName + 'loaded'` is fired for each layer with name as `layerName`