Map Tiles for OpenLayers

Map Tiles for OpenLayers

Anonymous
Not applicable
2,681 Views
1 Reply
Message 1 of 2

Map Tiles for OpenLayers

Anonymous
Not applicable

I want to be able to create z/x/y map tiles that can be used by OpenLayers, Leaflet, etc....  I have AutoCAD MAP 3D DWG source drawings that have a coordinate system applied.  A360 is not an option since all drawing data must stay on the local network.  I am at the early stages of this project, so I have the flexibility to choose a decent solution.  Creating DWFs are too cumbersome to view in a browser and are also difficult to deal with on mobile devices.   I have looked at Mapnik for creating the tiles, but it does not look like DWG sources are supported.

 

What is the best approach for creating the tiles at several different zoom levels?

0 Likes
2,682 Views
1 Reply
Reply (1)
Message 2 of 2

gluckett
Collaborator
Collaborator

Yes, but you need Autodesk Infrastructure Map Server (usually the same version as AutoCAD Map 3D).

 

  1. Install AIMS
  2. Install mapguide-rest (https://github.com/jumpinjackie/mapguide-rest)
  3. Load your data into AIMS from AutoCAD Map 3D - in the Display Manager, click Map >Publish To Infrastrure Map Server 
  4. Create Tiled Map using AIMS Studio (Base Layers)
  5. Once you have the tiled map, you can refer to it like:
    http://myservername/mapserver2016/rest/library/maps/mygreattiledbasemap.MapDefinition/xyz/Base Layer Group/{z}/{x}/{y}/tile.png

if you want to add it to OpenLayers 2.

 

var layer = new OpenLayers.Layer.XYZ( "mapguide-rest",
  restUrl + "/library/maps/mygreattiledbasemap.MapDefinition/xyz/Base Layer Group/${z}/${x}/${y}/tile.png",
 

{sphericalMercator: true} );