This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web; | |
using SafeRoutes.Infrastructure.Storage.Domain; | |
namespace SafeRoutes.Infrastructure.Services | |
{ | |
/// <summary> | |
/// Service that clusters ProjectPoints |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*global gmm */ | |
if (!this.gmm || typeof this.gmm !== 'object') { | |
this.gmm = {}; | |
} | |
(function () { | |
'use strict'; | |
gmm.Viewer = new Backbone.Marionette.Application(); | |
gmm.Viewer.addRegions({ | |
toolsRegion: '#tool-list-region' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*global gmm */ | |
if (!this.gmm || typeof this.gmm !== 'object') { | |
this.gmm = {}; | |
} | |
(function () { | |
'use strict'; | |
gmm.Viewer.module('NavbarModule', function (Mod, Viewer, Backbone, Marionette, $, _) { | |
//================================== | |
//initializer called on Viewer.start(options) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var options = { | |
toolItems: [ | |
{name: 'Search', eventToRaise: 'View:Search', iconclass: 'entypo-search'}, | |
{name: 'Stats', eventToRaise: 'View:Stats', iconclass: 'entypo-chart-bar'}, | |
{name: 'Layer List', eventToRaise: 'View:LayerList', iconclass: 'entypo-map'}, | |
] | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<meta charset="utf-8" /> | |
<title>GeoMacMap</title> | |
<meta name="description" content="Demo app showing how to compose a loosely coupled mapping application using Backbone.Marionette"> | |
<meta name="author" content="Dave Bouwman / DTSAgile.com"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0"> | |
<link href='http://fonts.googleapis.com/css?family=Oxygen:400,700' rel='stylesheet' type='text/css'> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var options = { | |
menuItems: [ | |
{ name: 'Current Fires', eventToRaise: 'View:CurrenFires' }, | |
{ name: 'Historic Fires', eventToRaise: 'View:HistoricFires' }, | |
{ name: 'Fire Danger Map', eventToRaise: 'View:FireDanger' } | |
], | |
toolItems: [ | |
{name: 'Search', eventToRaise: 'View:Search', iconclass: 'entypo-search'}, | |
{name: 'Stats', eventToRaise: 'View:Stats', iconclass: 'entypo-chart-bar'}, | |
{name: 'Layer List', eventToRaise: 'View:LayerList', iconclass: 'entypo-map'}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//================================== | |
//Controller for the LayerList Module | |
//================================== | |
var Controller = Backbone.Marionette.Controller.extend({ | |
initialize: function (options) { | |
_.bindAll(); | |
console.log('LayerListMobule:Controller:initialize'); | |
this.region = options.region; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Container for the Layer List --> | |
<div id="layer-list-region" style="display:none;" class="view"></div> | |
<!-- Templates --> | |
<script id="layer-list-template" type="text/template" > | |
<div class="header"> | |
<h3>Map Layers</h3> | |
<span id="layer-list-close" class="entypo-cancel-circled"></span> | |
</div> | |
<div class="clear"></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var LayerListLayoutView = Backbone.Marionette.Layout.extend({ | |
template: "#layer-list-template", | |
//define the regions using selectors for nodes | |
//inside the layout's template | |
regions: { | |
layerListRegion: "#layer-list", | |
basemapRegion: "#basemap-list" | |
}, | |
events:{'click #layer-list-close':'closeView'}, | |
closeView:function(){ |
OlderNewer