Commit 675ea5b8 authored by Deployer's avatar Deployer

URL endpoints are all in HTTPS now.

parent d8a8e989
...@@ -20,8 +20,8 @@ This is CedarMaps Javascript API. It's simply a wrapper for [Mapbox Javascript A ...@@ -20,8 +20,8 @@ This is CedarMaps Javascript API. It's simply a wrapper for [Mapbox Javascript A
Recommended usage is via the CedarMaps CDN: Recommended usage is via the CedarMaps CDN:
```html ```html
<script src='http://api.cedarmaps.com/cedarmaps.js/v1.2.0/cedarmaps.js'></script> <script src='http://api.cedarmaps.com/cedarmaps.js/v1.2.1/cedarmaps.js'></script>
<link href='http://api.cedarmaps.com/cedarmaps.js/v1.2.0/cedarmaps.css' rel='stylesheet' /> <link href='http://api.cedarmaps.com/cedarmaps.js/v1.2.1/cedarmaps.css' rel='stylesheet' />
``` ```
The `cedarmaps.js` file includes the Leaflet library. Alternatively, you can use `cedarmaps.standalone.js`, which does not include Leaflet (you will have to provide it yourself). The `cedarmaps.js` file includes the Leaflet library. Alternatively, you can use `cedarmaps.standalone.js`, which does not include Leaflet (you will have to provide it yourself).
......
...@@ -5,9 +5,9 @@ ...@@ -5,9 +5,9 @@
<meta charset=utf-8 /> <meta charset=utf-8 />
<title>CedarMaps - Sample Geocoder Control</title> <title>CedarMaps - Sample Geocoder Control</title>
<script src='../dist/v1.2.0/cedarmaps.js'></script> <script src='../dist/v1.2.1/cedarmaps.js'></script>
<script src='../access-token.js'></script> <script src='../access-token.js'></script>
<link href='../dist/v1.2.0/cedarmaps.css' rel='stylesheet' /> <link href='../dist/v1.2.1/cedarmaps.css' rel='stylesheet' />
<link href='css/styles.css' rel='stylesheet' /> <link href='css/styles.css' rel='stylesheet' />
...@@ -68,7 +68,7 @@ ...@@ -68,7 +68,7 @@
<div id='map' class='map'> </div> <div id='map' class='map'> </div>
<script> <script>
window.L.Icon.Default.imagePath = '../dist/v1.2.0/images/images'; window.L.Icon.Default.imagePath = '../dist/v1.2.1/images/images';
try { try {
L.cedarmaps.accessToken = accessToken; L.cedarmaps.accessToken = accessToken;
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
'Send us an email to <info@cedar.ir>'); 'Send us an email to <info@cedar.ir>');
} }
var tileJSONUrl = 'http://api.cedarmaps.com/v1/tiles/cedarmaps.streets.json?access_token=' + L.cedarmaps.accessToken, var tileJSONUrl = 'https://api.cedarmaps.com/v1/tiles/cedarmaps.streets.json?access_token=' + L.cedarmaps.accessToken,
marker; marker;
// Initializing our map // Initializing our map
......
...@@ -5,9 +5,9 @@ ...@@ -5,9 +5,9 @@
<meta charset=utf-8 /> <meta charset=utf-8 />
<title>CedarMaps - Simple Map Load</title> <title>CedarMaps - Simple Map Load</title>
<script src='../dist/v1.2.0/cedarmaps.js'></script> <script src='../dist/v1.2.1/cedarmaps.js'></script>
<script src='../access-token.js'></script> <script src='../access-token.js'></script>
<link href='../dist/v1.2.0/cedarmaps.css' rel='stylesheet' /> <link href='../dist/v1.2.1/cedarmaps.css' rel='stylesheet' />
<style> <style>
body { body {
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
*/ */
// Getting maps info from a tileJSON source // Getting maps info from a tileJSON source
var tileJSONUrl = 'http://api.cedarmaps.com/v1/tiles/cedarmaps.streets.json?access_token='+ L.cedarmaps.accessToken; var tileJSONUrl = 'https://api.cedarmaps.com/v1/tiles/cedarmaps.streets.json?access_token='+ L.cedarmaps.accessToken;
// initilizing map into div#map // initilizing map into div#map
var map = L.cedarmaps.map('map', tileJSONUrl, { var map = L.cedarmaps.map('map', tileJSONUrl, {
...@@ -55,13 +55,13 @@ ...@@ -55,13 +55,13 @@
// see: http://leafletjs.com/reference.html#marker // see: http://leafletjs.com/reference.html#marker
var myIcon = L.icon({ var myIcon = L.icon({
iconUrl: '../dist/v1.2.0/images/pin-taxi.png', iconUrl: '../dist/v1.2.1/images/pin-taxi.png',
iconRetinaUrl: '../dist/v1.2.0/images/pin-taxi@2x.png', iconRetinaUrl: '../dist/v1.2.1/images/pin-taxi@2x.png',
iconSize: [34, 46], iconSize: [34, 46],
iconAnchor: [17, 41], iconAnchor: [17, 41],
popupAnchor: [-3, -46], popupAnchor: [-3, -46],
shadowUrl: '../dist/v1.2.0/images/pin-shadow.png', shadowUrl: '../dist/v1.2.1/images/pin-shadow.png',
shadowRetinaUrl: '../dist/v1.2.0/images/pin-shadow@2x.png', shadowRetinaUrl: '../dist/v1.2.1/images/pin-shadow@2x.png',
shadowSize: [26, 6], shadowSize: [26, 6],
shadowAnchor: [13,3] shadowAnchor: [13,3]
}); });
......
...@@ -5,9 +5,9 @@ ...@@ -5,9 +5,9 @@
<meta charset=utf-8 /> <meta charset=utf-8 />
<title>CedarMaps - Reverse Geocoding Sample</title> <title>CedarMaps - Reverse Geocoding Sample</title>
<script src='../dist/v1.2.0/cedarmaps.js'></script> <script src='../dist/v1.2.1/cedarmaps.js'></script>
<script src='../access-token.js'></script> <script src='../access-token.js'></script>
<link href='../dist/v1.2.0/cedarmaps.css' rel='stylesheet' /> <link href='../dist/v1.2.1/cedarmaps.css' rel='stylesheet' />
<style> <style>
body { body {
...@@ -55,12 +55,12 @@ ...@@ -55,12 +55,12 @@
<body> <body>
<div id='map' class='map'> </div> <div id='map' class='map'> </div>
<div id="results"> <div id="results">
<h2>Click somewhere on map!</h2><div id="loading"><img src="../dist/v1.2.0/images/loading-14-white.gif" width="14" height="14"> Loading...</div> <h2>Click somewhere on map!</h2><div id="loading"><img src="../dist/v1.2.1/images/loading-14-white.gif" width="14" height="14"> Loading...</div>
<div id="latlng"></div> <div id="latlng"></div>
<div id="response"></div> <div id="response"></div>
</div> </div>
<script> <script>
window.L.Icon.Default.imagePath ='../dist/v1.2.0/images/images'; window.L.Icon.Default.imagePath ='../dist/v1.2.1/images/images';
try { try {
L.cedarmaps.accessToken = accessToken; L.cedarmaps.accessToken = accessToken;
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
'Send us an email to <info@cedar.ir>'); 'Send us an email to <info@cedar.ir>');
} }
var tileJSONUrl = 'http://api.cedarmaps.com/v1/tiles/cedarmaps.streets.json?access_token='+ L.cedarmaps.accessToken, var tileJSONUrl = 'https://api.cedarmaps.com/v1/tiles/cedarmaps.streets.json?access_token='+ L.cedarmaps.accessToken,
marker; marker;
// Initializing our map // Initializing our map
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
"author": "CedarStudios", "author": "CedarStudios",
"name": "cedarmaps.js", "name": "cedarmaps.js",
"description": "CedarMaps javascript API built on top of mapbox.js", "description": "CedarMaps javascript API built on top of mapbox.js",
"version": "1.2.0", "version": "1.2.1",
"homepage": "http://www.cedarmaps.com/", "homepage": "http://www.cedarmaps.com/",
"repository": { "repository": {
"type": "git", "type": "git",
......
...@@ -3,6 +3,6 @@ ...@@ -3,6 +3,6 @@
module.exports = { module.exports = {
HTTP_URL: window.apiBaseUrlHttp || 'http://api.cedarmaps.com/v1', HTTP_URL: window.apiBaseUrlHttp || 'http://api.cedarmaps.com/v1',
HTTPS_URL: window.apiBaseUrlHttps || 'https://api.cedarmaps.com/v1', HTTPS_URL: window.apiBaseUrlHttps || 'https://api.cedarmaps.com/v1',
FORCE_HTTPS: false, FORCE_HTTPS: true,
REQUIRE_ACCESS_TOKEN: true REQUIRE_ACCESS_TOKEN: true
}; };
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment