Merge pull request #452 from aliounedia/master

TimeLineJs test fail , Fixed , all test pass now ,  - (http) not figured on recline.view.map initialization
This commit is contained in:
aliounedia 2014-10-15 20:16:10 +02:00
commit dc919c2cfd
2 changed files with 4 additions and 2 deletions

View File

@ -461,8 +461,8 @@ my.Map = Backbone.View.extend({
var self = this;
this.map = new L.Map(this.$map.get(0));
var mapUrl = "//otile{s}-s.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.png";
var osmAttribution = 'Map data &copy; 2011 OpenStreetMap contributors, Tiles Courtesy of <a href="http://www.mapquest.com/" target="_blank">MapQuest</a> <img src="//developer.mapquest.com/content/osm/mq_logo.png">';
var mapUrl = "http://otile{s}-s.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.png";
var osmAttribution = 'Map data &copy; 2011 OpenStreetMap contributors, Tiles Courtesy of <a href="http://www.mapquest.com/" target="_blank">MapQuest</a> <img src="http://developer.mapquest.com/content/osm/mq_logo.png">';
var bg = new L.TileLayer(mapUrl, {maxZoom: 18, attribution: osmAttribution ,subdomains: '1234'});
this.map.addLayer(bg);

View File

@ -20,6 +20,7 @@ test('extract dates and timelineJSON', function () {
'date': [
{
'startDate': '2012,03,20',
'tag': undefined,
'endDate': null,
'headline': '1',
'text': '<div class="recline-record-summary"><div class="Date"><strong>Date</strong>: 2012-03-20</div><div class="title"><strong>title</strong>: 1</div></div>'
@ -28,6 +29,7 @@ test('extract dates and timelineJSON', function () {
'startDate': '2012,03,25',
'endDate': null,
'headline': '2',
'tag': undefined,
'text': '<div class="recline-record-summary"><div class="Date"><strong>Date</strong>: 2012-03-25</div><div class="title"><strong>title</strong>: 2</div></div>'
}
]