示例#1
0
        setPerfil: function() {
            LMap.setView(this.latLng, this.zoom, -200);

            this.marker = LMap.setMarker({
                latLng: this.latLng,
                icon: LMap.setIcon('home', 'red')
            });
            
            this.marker.addTo(LMap.map);
        },
示例#2
0
 	render: function() {
 		this.$el.html(this.template(this.model.attributes));
         LMap.setView(this.latLng, this.zoom, -200);
 		return this.el;
 	},