[OSM-talk-be] Question: Showing a part of the map

Marc Gemis marc.gemis at gmail.com
Thu Jul 9 03:30:20 UTC 2015


As André already indicated, all those Javascript libraries support WMS:

OpenLayers: http://dev.openlayers.org/examples/lite.html
Mapbox.js: https://www.mapbox.com/mapbox.js/example/v1.0.0/wms/
Leaflet: http://leafletjs.com/reference.html#tilelayer-wms

All examples/documentation were found with a simple Google search.
umap is not a library but a platform on which one can make simple
personalized maps.
The scope and target audience is different, hence the current lack to use
your own WMS layers.

regards

m

On Wed, Jul 8, 2015 at 4:59 PM, Alana Panny <panny.alana at gmail.com> wrote:

> Hi Joost
>
> You were of great help to us! But we have another question, we had another
> problem: adding WMS as a base layer. Do you have any experience with this?
>
> Kind regards
> Alana Panny
>
> 2015-07-08 14:21 GMT+02:00 joost schouppe <joost.schouppe at gmail.com>:
>
>> If I understand what you mean, you can do this with umap: see this
>> example http://umap.openstreetmap.fr/nl/map/an-example_46442
>> Here you can zoom in on Gent, but not zoom out or move away from Gent.
>>
>> 2015-07-08 13:56 GMT+02:00 Marc Gemis <marc.gemis at gmail.com>:
>>
>>> You can't do that with just a URL to the map on openstreetmap.org.
>>>
>>> There are a number of JavaScript libraries out there that allow you to
>>> program such functionality.
>>> See e.g. Mapbox.js from Mapbox [1], or the maxbounds option in the
>>> leaflet library [2]
>>>
>>> regards
>>>
>>> m
>>>
>>> [1] https://www.mapbox.com/mapbox.js/example/v1.0.0/maxbounds/
>>> [2] http://leafletjs.com/reference.html
>>>
>>> On Wed, Jul 8, 2015 at 1:47 PM, Alana Panny <panny.alana at gmail.com>
>>> wrote:
>>>
>>>> Hi everyone
>>>>
>>>> I have a question about showing a part of the map. Is it possible to
>>>> only show a part of the map. And is it also possible to not go out of the
>>>> map when zooming out? Last question: is their a way to cache the part of
>>>> the map.
>>>>
>>>> Kind regards
>>>> Alana Panny
>>>>
>>>> _______________________________________________
>>>> Talk-be mailing list
>>>> Talk-be at openstreetmap.org
>>>> https://lists.openstreetmap.org/listinfo/talk-be
>>>>
>>>>
>>>
>>> _______________________________________________
>>> Talk-be mailing list
>>> Talk-be at openstreetmap.org
>>> https://lists.openstreetmap.org/listinfo/talk-be
>>>
>>>
>>
>> _______________________________________________
>> Talk-be mailing list
>> Talk-be at openstreetmap.org
>> https://lists.openstreetmap.org/listinfo/talk-be
>>
>>
>
> _______________________________________________
> Talk-be mailing list
> Talk-be at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/talk-be
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk-be/attachments/20150709/d32cb3cf/attachment.htm>


More information about the Talk-be mailing list