May 2017
Beginner to intermediate
328 pages
7h 17m
English
So let's code an ol3 example. Once again, we are merely modifying a layer definition:
new ol.layer.Vector({ //projection: proj, source: new ol.source.Vector({ format: new ol.format.TopoJSON(), url: 'data/topojson.json', attributions: [ new ol.Attribution({ html: 'Mastering PostGIS - TopoJSON' }) ] }), style: [ new ol.style.Style({ stroke: new ol.style.Stroke({ color: 'rgba(0, 0, 0, 1)', width: 0.5 }) }) ] })
In order to preview the example, navigate to the example's folder, run sencha app watch, and navigate to http://localhost:1841/apps/07_ol3_topojson/ ...
Read now
Unlock full access