JSFiddle - React, Tailwind, and code Playground
by Neeraj
JavaScript
/* Created By Neeraj S */
define([
'durandal/system',
'durandal/app',
'plugins/router'],
function (system, app, router) {
//Disables old ECMAScript 3 features
'use strict';
return (function () {
var ctor = function () {
var self = this;
//self.lmap = null;
};
ctor.prototype.activate = function () { };
ctor.prototype.attached = function (view) {
};
ctor.prototype.compositionComplete = function (view, parent) {
//ctor.prototype.compositionComplete = function () {
system.log('come here');
mapLayer();
simplegeo();
};
function simplegeo() {
// a GeoJSON multipolygon
var mp = {
"type": "Feature",
"geometry": {
"type": "MultiPolygon",
"coordinates": [
[
[
[101.2, 1.2], [101.8, 1.2], [101.8, 1.8], [101.2, 1.8], [101.2, 1.2]
],
[
[101.2, 1.2], [101.3, 1.2], [101.3, 1.3], [101.2, 1.3], [101.2, 1.2]
],
[
[101.6, 1.4], [101.7, 1.4], [101.7, 1.5], [101.6, 1.5], [101.6, 1.4]
],
[
[101.5, 1.6], [101.6, 1.6], [101.6, 1.7], [101.5, 1.7], [101.5, 1.6]
]
],
[
[
[100.0, 0.0], [101.0, 0.0], [101.0, 1.0], [100.0, 1.0], [100.0, 0.0]
],
[
[100.35, 0.35], [100.65, 0.35], [100.65, 0.65], [100.35, 0.65], [100.35, 0.35]
]
]
]
},
...