Tag Info

New answers tagged


In OpenLayers the map holds that information so a call to map.getScale() will return the current scale denominator of the map. If no baselayer is set, returns null. All you need to do is put "1:" in front of it.


It works but abit tricky way... $.each(layer.data.features, function(index, polygons) { var coordinates = JSON.parse(polygons.geometry.coordinates); var values = []; var coord = []; for(var i = 0, l = coordinates.length; i < l; ...


In the javascript code the array is treated as a string so try to parse this sting as json before using , then assign the result to coordinates . So if your result in success function is result , parse its coordinates attribute before using it this is example how to do so : result = { "type": "FeatureCollection", "features": [ { ...


Another option is the service provided by AddTransit (http://addtransit.com), of which I am the manager of. AddTransit has web based software that assists in creating the GTFS Feeds or the AddTransit team can do it for you. The web based software also supports Real Time feeds and vehicle positioning as well.

Top 50 recent answers are included