[OSM-dev] Faster Commercial Layers
Tom Hughes
tom at compton.nu
Wed Nov 28 21:30:07 GMT 2007
On Nov 21, 2007 1:37 PM, Christopher Schmidt <crschmidt at metacarta.com> wrote:
> What OSM should do is provide an OpenLayers 'Layer' class, hosted on
> OSM's server. This layer would have the 'attribution' on the layer set:
> attribution can be moved around the map by the user, and looks like:
> http://openlayers.org/dev/examples/attribution.html , but can have any
> amount of HTML in it. This would allow OSM to put an <img> tag in the
> attribution on the Layer, and all someone would have to do to use OSM in
> OL would be:
>
> 1. Include main OL script.
> 2. Inclue OSM Layer via <script src>
> 3. new OpenLayers.Layer.OSM.TAH or new OpenLayers.Layer.OSM.Mapnik
>
> This would also let OSM decide which tile servers to include in lists,
> stuff like that, so that users don't have to worry about setting any of
> it up, or setting up the 'osm_get_url' stuff that users have to know
> about now.
This is now in place - just include
http://openstreetmap.org/openlayers/OpenStreetMap.js and you will have
OpenLayers.Layer.OSM.Mapnik and OpenLayers.Layer.OSM.Osmarender layer
classes for OpenLayers.
Tom
--
Tom Hughes (tom at compton.nu)
http://www.compton.nu/
More information about the dev
mailing list