A Pen by Franck Ernewein on CodePen.
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
define([ | |
'underscore', | |
'backbone' | |
], function( _, Backbone ){ | |
function Deferred(){ | |
this.resolved = false; | |
this.rejected = false; | |
} |
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 Backbone = require('backbone'); | |
var najax = require('najax'); | |
//set ajax fonction in node | |
Backbone.ajax = najax; | |
//create a collection | |
var Users = Backbone.Collection.extend({ | |
url: 'https://raw.github.com/FranckErnewein/perso/master/www/data/work.json', | |
}); |
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 backbone = require('Backbone'); | |
var $ = require('jquery'); | |
// Views Classes | |
var ListNewsView = require('///'); | |
var NewsView = require('///'); | |
var Home = require('///'); | |
// define router | |
var MyRouter = Backbone.Router.extend({ |
Lightstream is a solution which allows you to map any kind of geocalized data in real time. Lightstream API is the backend entry you want to use to push your items, so you can visualize them on the front end. This documentation will help you understand how easy it is to use .
- Items and types explains why items and types are important in Lightstream
- API access gives you all information to access the API.
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
<?php | |
$server = 'test.lightstream.io'; | |
$type = 'ads'; | |
$key = 'b72d053a3722415fab181af70e89a8f2'; | |
$query_string = '?api_key='.$key; | |
$url = 'http://'.$server.'/api/items/'.$type; | |
$generated_id = 'test_' . time(); |
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 L = window.L; | |
var addressPoints = window.addressPoints; | |
var tiles = L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', { | |
maxZoom: 18, | |
attribution: '© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors, Points © 2012 LINZ' | |
}), | |
latlng = L.latLng(-37.82, 175.24); | |
var map = L.map('map', { | |
center: latlng, |
Lightstream is a solution which allows you to map any kind of geocalized data in real time. Lightstream API is the backend entry you want to use to push your items, so you can visualize them on the front end. This documentation will help you understand how easy it is to use .
- Items and types explains why items and types are important in Lightstream
- API access gives you all information to access the API.
229 av. Grassion Cibrand
34130 Carnon
France
+33 6 50 79 41 35
franck.ernewein@gmail.com
https://github.com/FranckErnewein