Adding scaleline when using a custom projection

المشرف العام

Administrator
طاقم الإدارة
I have recently started working with OL3 and now I try to add ScaleLine control to my map

var scaleLineControl = new ol.control.ScaleLine({units:'metric'});var scaleLine = ol.control.defaults({ attributionOptions: /** @type {olx.control.AttributionOptions} */ ({ collapsible: false })}).extend([ scaleLineControl]);map.addControl(scaleLine);When doing this I get the AssertionError: Assertion failed in Firefox

Im using proj4 and the map is using a different projection.

Isnt it possible to use scaleline with other that EPSG:4326 ?

BrMike



أكثر...
 
أعلى