PDA

View Full Version : Map images when using Zoom and Pan features



anewlevel0419
09-11-2013, 11:58 AM
Hello,

I'm interested in creating an interactive map on the web that will allow users to select layers of information that will populate on the map. I would also like the map to have zoom and pan capabilities. My confusion lies in trying to understand how the zoom function is programmed.

How many different images of the "oblique" map (the map image that does not change) would I need to create/host on a WMS to have a satellite view and a town view? 2? I want to make sure that I have the appropriate artwork before moving forward with programming.

Thank you,

Greg

Poison
09-11-2013, 12:23 PM
Hey, and welcome!

I have no programming knowledge to speak of, but I do know there are a couple of websites that offer interactive map viewing. I think MashupForge (http://mashupforge.com/#/about) is one of the more known ones. Markers, layers, lines, shapes, etc. And zooming and panning! Maybe that's enough for what you need?

Azelor
09-11-2013, 07:22 PM
You could use the Google map api to create custom map. I tried once but I don't remember how to do it.

How it works: It take images from the document at different scales. You will only have 1 image at the smallest scale and as it zoom in you will have more images at bigger scale. Each zoom level may have more than one image.
So in fact you are not zooming or scroling , your are looking at a different image. But the effect is the same.

That's basic, but I don't knowe if you can add other layers.

And welcome to the Guild!

anewlevel0419
09-12-2013, 09:19 AM
Thank you for the replies. Azelor, I would like to work outside of Google API, and use d3 or OpenLayers, but your insight is helpful: The zooming effect is simply new images loading on the screen, therefore I would need that many different images.

Thank you again. This place rocks.

Greg

Hai-Etlik
09-14-2013, 07:53 PM
I'm interested in creating an interactive map on the web that will allow users to select layers of information that will populate on the map. I would also like the map to have zoom and pan capabilities. My confusion lies in trying to understand how the zoom function is programmed.

How many different images of the "oblique" map (the map image that does not change) would I need to create/host on a WMS to have a satellite view and a town view? 2? I want to make sure that I have the appropriate artwork before moving forward with programming.

I've never heard "oblique" used that way. Do you mean the "base map", the map displayed at the bottom of the stack of layers as a reference for the "overlay" layers?

Zoom, Pan, Layer switching etc is all taken care of by a slippy map library like OpenLayers or Leaflet. You point it at the WMS layers and do a bit of configuration. There isn't any real programming to do unless you want to do something fancy.

Switching out between pre-rendered maps depending on scale could be done a few ways. I'd go with setting it up on the server side, but that's because that's what I'm more familiar with. If using GeoServer I'd use scale dependant styles to turn them on and off, and a layer group to combine them. It could also be done in the slippy map client, but I don't know as much about that side of things.

anewlevel0419
10-02-2013, 03:34 PM
Correct, base map, and thank you. As far as design, is a two view map even cool? I'm trying to create a map that shows the land mass from a distance and then one more zoom level that shows a generic town layout with buildings. Any input is helpful.

farvardin
10-29-2013, 05:47 AM
hello,
sorry for cross posting about this topic, but I found some nice tools recently. You can have a look at my answer here:

http://www.cartographersguild.com/general-discussion/19548-interactive-maps.html#post228447