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 ♦
2

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
Your answer
toggle preview

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:

×93
×3
×3
×1

question asked: 28 Dec '12, 21:15

question was seen: 11,538 times

last updated: 23 Sep, 18:47

powered by OSQA