Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var crossPolandGeojson = {
- "type": "FeatureCollection",
- "features": [
- {
- "type": "Feature",
- "properties": {},
- "geometry": {
- "type": "LineString",
- "coordinates": [
- [
- 14.326171874999998,
- 54.059387886623576
- ],
- [
- 23.1591796875,
- 49.674737880665994
- ]
- ]
- }
- },
- {
- "type": "Feature",
- "properties": {},
- "geometry": {
- "type": "LineString",
- "coordinates": [
- [
- 22.939453125,
- 54.39335222384589
- ],
- [
- 15.00732421875,
- 49.69606181911566
- ]
- ]
- }
- }
- ]
- };
- var crossPolandLayer = new OpenLayers.Layer.Vector("Krzyż na Polsce", {
- ref: 'cpl'
- });
- var openlayerFeatures = crossPolandGeojson.features.map(function (f) {
- var cf = geojsonFormat.parseFeature(f);
- cf.geometry.transform(gg, mp);
- return cf
- });
- crossPolandLayer.addFeatures(openlayerFeatures);
- map.addLayer(crossPolandLayer)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement