NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

1
1

Google Maps v3 has an option ---> scrollwheel="false"

Is something like this available for OpenStreetMap?

asked 28 Dec '12, 21:15

Nu%20Everest's gravatar image

Nu Everest
26112
accept rate: 0%

3

OpenStreetMap is, at its core, just a large lump of data. Many different options are available for getting this data in front of a user. So the answer is "yes, if you want there to be".

Or perhaps you could explain a little bit more about what you're trying to do?

I'm guessing that it involves a web-based map of some sort, possibly made up of map tiles, but could you be more specific?

(28 Dec '12, 21:31) SomeoneElse ♦
3

Yeah I'm guessing you're actually asking about OpenLayers or Leaflet. You need to state this in your question

(29 Dec '12, 02:17) Harry Wood
1

You could I guess use Google Maps to display OpenStreetMap tiles as per this example: http://wiki.openstreetmap.org/wiki/Google_Maps_Example

(29 Dec '12, 11:34) EdLoach ♦

I just want to make my page in a way that the user can scroll down the page and over the map without getting sucked into the map.

I am aware that OpenLayers provides such a feature i.e. http://www.stoimen.com/blog/2009/06/20/openlayers-disable-mouse-wheel-on-zoom/

However, to get access to what seems like a simple feature I have to include a massive OpenLayers JS file that gives me the ability to do a bunch of cool things that I don't need.

I was hoping that I could simply define a setting in the Embeddable HTML.

It seems like the answer is, no.

(29 Dec '12, 17:33) Nu Everest

I'm trying to remove embed Google Map on my customers websites, but as Nu Everest, I'm lookign for an easy way to disable the scroll (zoom) when the mouse is hover the map. Many customers have bad come back with this fonctionnality (specially when the embed map is big and when the visitor just want to scroll down the website page).

So I think it could be very usefull for OSM growing to implement a scrollwheelzoom="false" option on the embed code.

(30 Nov '13, 12:20) Spheerys
2

@Spheerys As already described in the other answers/comments this has nothing to do with OpenStreetMap but instead is a Leaflet/OpenLayers/whateveryouareusing-issue.

(30 Nov '13, 14:14) scai ♦

Hi, wondering if this is still not possible in OSM?

I have put a very simple embed (literally just showing where something is on the map) on a website -- but on scroll it obviously goes a little crazy with zooming. So, I would like to disable mousewheel zoom.

(28 Dec '14, 01:14) popovichN
1

@popovichN: it IS possible. See the comments above.

(28 Dec '14, 02:37) aseerel4c26 ♦
showing 5 of 8 show 3 more comments

Leaflet is small, easy to use and does include mousewheel support. It is worth looking at.

permanent link

answered 29 Dec '12, 19:01

ChrisH's gravatar image

ChrisH
4.1k134262
accept rate: 15%

Thank you for all of your responses. Leaflet looks like a great answer thanks!

(29 Dec '12, 22:35) Nu Everest
-3

Please be clear:

Can you avoid scrolling in a web map insert with the options provided by the openstreetmap GUI? NO, YOU CAN'T.

If there is a method, please give a useful answer. If you are concerned about the use of openstreetmap on the web, please suggest such an improvement.

Thanks

permanent link

answered 23 Nov '21, 13:51

Screatius's gravatar image

Screatius
-2
accept rate: 0%

2

Some how I doubt that commenting on a 9 year old answer is going to achieve anything.

(23 Nov '21, 15:33) SimonPoole ♦

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×107
×3
×3
×2

question asked: 28 Dec '12, 21:15

question was seen: 16,355 times

last updated: 23 Nov '21, 15:33

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum