Hi Jackie
Great job,
I was fighting with leaflet and mapguide ...
Your approach greatly simplify the work
Bruno Scott
--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/Consuming-MG-tiled-maps-as-XYZ-tiled-maps-for-OpenLayers-Leaflet-etc-tp5134024p5141889.html
Sent from the
Vector tiles in OpenLayers 3, that is sure the way forward, very cool.
Best regards
Hans Milling...
--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/Consuming-MG-tiled-maps-as-XYZ-tiled-maps-for-OpenLayers-Leaflet-etc-tp5134024p5141886.html
Sent from the MapGuide Users ma
In case anyone's interested. There is an actual way to serve Map Definitions
as XYZ tiles. It's a bit of a hack as it requires the use of the RenderMap
API (as GetTile/RenderTile is not flexible enough for serving XYZ tiles).
I have an experimental implementation in mapguide-rest and blogged about
Hi Jackie
i got this from openlayers code
var scale = resolution * OpenLayers.INCHES_PER_UNIT[units] *
OpenLayers.DOTS_PER_INCH;
OpenLayers.INCHES_PER_UNIT = {
'inches': 1.0,
'ft': 12.0,
'mi': 63360.0,
'm': 39.3701,
'km': 39370.1,
'dd': 4374754,
Hi Bruno,
It's the OpenLayers concept of resolutions that completely stumps me. What
does this conceptually translate to in MapGuide? scale? meters-per-unit?
some combination thereof?
- Jackie
--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/Consuming-MG-tiled-maps-as-XYZ-
Hi Jackie
Maybe by reverse engineering what's done with openLayers
var currentRes = this.map.getResolution();
var colidx =
Math.floor((bounds.left-this.maxExtent.left)/currentRes);
colidx = Math.round(colidx/this.tileSize.w);
var rowidx =
Math.floor((this.m
Hi All,
Assuming a tiled Map Definition satisfies the requirements of a XYZ tile set
(I'm guessing WGS84.PseudoMercator with the same bounds, scale lists and
tile sizes used by Google Maps or OSM), is there are way to easily translate
x,y,z tile requests into the row,col,scaleindex system used by