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
Recommended usage is via the CedarMaps CDN:
```html
<script src='http://api.cedarmaps.com/cedarmaps.js/v1.2.0/cedarmaps.js'></script>
<link href='http://api.cedarmaps.com/cedarmaps.js/v1.2.0/cedarmaps.css' rel='stylesheet' />
<script src='http://api.cedarmaps.com/cedarmaps.js/v1.2.1/cedarmaps.js'></script>
<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).
......
......@@ -5,9 +5,9 @@
<meta charset=utf-8 />
<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>
<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' />
......@@ -68,7 +68,7 @@
<div id='map' class='map'> </div>
<script>
window.L.Icon.Default.imagePath = '../dist/v1.2.0/images/images';
window.L.Icon.Default.imagePath = '../dist/v1.2.1/images/images';
try {
L.cedarmaps.accessToken = accessToken;
......@@ -77,7 +77,7 @@
'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;
// Initializing our map
......
......@@ -5,9 +5,9 @@
<meta charset=utf-8 />
<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>
<link href='../dist/v1.2.0/cedarmaps.css' rel='stylesheet' />
<link href='../dist/v1.2.1/cedarmaps.css' rel='stylesheet' />
<style>
body {
......@@ -41,7 +41,7 @@
*/
// 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
var map = L.cedarmaps.map('map', tileJSONUrl, {
......@@ -55,13 +55,13 @@
// see: http://leafletjs.com/reference.html#marker
var myIcon = L.icon({
iconUrl: '../dist/v1.2.0/images/pin-taxi.png',
iconRetinaUrl: '../dist/v1.2.0/images/pin-taxi@2x.png',
iconUrl: '../dist/v1.2.1/images/pin-taxi.png',
iconRetinaUrl: '../dist/v1.2.1/images/pin-taxi@2x.png',
iconSize: [34, 46],
iconAnchor: [17, 41],
popupAnchor: [-3, -46],
shadowUrl: '../dist/v1.2.0/images/pin-shadow.png',
shadowRetinaUrl: '../dist/v1.2.0/images/pin-shadow@2x.png',
shadowUrl: '../dist/v1.2.1/images/pin-shadow.png',
shadowRetinaUrl: '../dist/v1.2.1/images/pin-shadow@2x.png',
shadowSize: [26, 6],
shadowAnchor: [13,3]
});
......
......@@ -5,9 +5,9 @@
<meta charset=utf-8 />
<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>
<link href='../dist/v1.2.0/cedarmaps.css' rel='stylesheet' />
<link href='../dist/v1.2.1/cedarmaps.css' rel='stylesheet' />
<style>
body {
......@@ -55,12 +55,12 @@
<body>
<div id='map' class='map'> </div>
<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="response"></div>
</div>
<script>
window.L.Icon.Default.imagePath ='../dist/v1.2.0/images/images';
window.L.Icon.Default.imagePath ='../dist/v1.2.1/images/images';
try {
L.cedarmaps.accessToken = accessToken;
......@@ -70,7 +70,7 @@
'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;
// Initializing our map
......
......@@ -2,7 +2,7 @@
"author": "CedarStudios",
"name": "cedarmaps.js",
"description": "CedarMaps javascript API built on top of mapbox.js",
"version": "1.2.0",
"version": "1.2.1",
"homepage": "http://www.cedarmaps.com/",
"repository": {
"type": "git",
......
......@@ -3,6 +3,6 @@
module.exports = {
HTTP_URL: window.apiBaseUrlHttp || 'http://api.cedarmaps.com/v1',
HTTPS_URL: window.apiBaseUrlHttps || 'https://api.cedarmaps.com/v1',
FORCE_HTTPS: false,
FORCE_HTTPS: 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