Sha256: 512bd672466aaba1e13350341be30aff7fa4fda6709d84b94171d172ee6febc7

Contents?: true

Size: 1.89 KB

Versions: 154

Compression:

Stored size: 1.89 KB

Contents

'use strict';

var geocoderControl = require('./geocoder_control'),
    gridControl = require('./grid_control'),
    featureLayer = require('./feature_layer'),
    legendControl = require('./legend_control'),
    shareControl = require('./share_control'),
    tileLayer = require('./tile_layer'),
    map = require('./map'),
    gridLayer = require('./grid_layer'),
    styleLayer = require('./style_layer');

L.mapbox = module.exports = {
    VERSION: require('../package.json').version,
    geocoder: require('./geocoder'),
    marker: require('./marker'),
    simplestyle: require('./simplestyle'),
    tileLayer: tileLayer.tileLayer,
    TileLayer: tileLayer.TileLayer,
    styleLayer: styleLayer.styleLayer,
    StyleLayer: styleLayer.StyleLayer,
    shareControl: shareControl.shareControl,
    ShareControl: shareControl.ShareControl,
    legendControl: legendControl.legendControl,
    LegendControl: legendControl.LegendControl,
    geocoderControl: geocoderControl.geocoderControl,
    GeocoderControl: geocoderControl.GeocoderControl,
    gridControl: gridControl.gridControl,
    GridControl: gridControl.GridControl,
    gridLayer: gridLayer.gridLayer,
    GridLayer: gridLayer.GridLayer,
    featureLayer: featureLayer.featureLayer,
    FeatureLayer: featureLayer.FeatureLayer,
    map: map.map,
    Map: map.Map,
    config: require('./config'),
    sanitize: require('sanitize-caja'),
    template: require('mustache').to_html,
    feedback: require('./feedback')
};


// Hardcode image path, because Leaflet's autodetection
// fails, because mapbox.js is not named leaflet.js
window.L.Icon.Default.imagePath =
    // Detect bad-news protocols like file:// and hardcode
    // to https if they're detected.
    ((document.location.protocol === 'https:' ||
    document.location.protocol === 'http:') ? '' : 'https:') +
    '//api.tiles.mapbox.com/mapbox.js/' + 'v' +
    require('../package.json').version + '/images/';

Version data entries

154 entries across 154 versions & 2 rubygems

Version Path
phcthemes_admin_panel_pack-4.0.7 app/assets/javascripts/common/mapbox/mapbox.js
phcthemes_admin_panel_pack-4.0.6 app/assets/javascripts/common/mapbox/mapbox.js
phcthemes_admin_panel_pack-4.0.5 app/assets/javascripts/common/mapbox/mapbox.js
phcthemes_admin_panel_pack-4.0.3 app/assets/javascripts/common/mapbox/mapbox.js
phcthemes_admin_panel_pack-4.0.2 app/assets/javascripts/common/mapbox/mapbox.js
phcthemes_web_theme_pack-4.0.6 app/assets/javascripts/common/mapbox/mapbox.js
phcthemes_admin_panel_pack-4.0.1 app/assets/javascripts/common/mapbox/mapbox.js
phcthemes_web_theme_pack-4.0.5 app/assets/javascripts/common/mapbox/mapbox.js
phcthemes_web_theme_pack-4.0.4 app/assets/javascripts/common/mapbox/mapbox.js
phcthemes_web_theme_pack-4.0.3 app/assets/javascripts/common/mapbox/mapbox.js
phcthemes_web_theme_pack-4.0.2 app/assets/javascripts/common/mapbox/mapbox.js
phcthemes_web_theme_pack-4.0.1 app/assets/javascripts/common/mapbox/mapbox.js
phcthemes_web_theme_pack-4.0.0 app/assets/javascripts/common/mapbox/mapbox.js
phcthemes_admin_panel_pack-4.0.0 app/assets/javascripts/common/mapbox/mapbox.js
phcthemes_admin_panel_pack-3.2.0 app/assets/javascripts/common/mapbox/mapbox.js
phcthemes_web_theme_pack-3.2.0 app/assets/javascripts/common/mapbox/mapbox.js
phcthemes_admin_panel_pack-3.1.3 app/assets/javascripts/common/mapbox/mapbox.js
phcthemes_admin_panel_pack-3.1.2 app/assets/javascripts/common/mapbox/mapbox.js
phcthemes_admin_panel_pack-3.1.1 app/assets/javascripts/common/mapbox/mapbox.js
phcthemes_web_theme_pack-3.0.2 app/assets/javascripts/common/mapbox/mapbox.js