Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I have looked at this thread: add location search to openlayers map But it is not the result that I am trying to achieve.

Probably best if i show you: http://www.potholestudios.com/Content/pid=46.html

I have made this Interactive Game Map using Open Layers. What i would like to do is add a search Box, so when say someone types into a Search Box "Deep Space 9" the map would fly to coordinates (-33.87, -8.58) Deep Space 9 in the Beta Ursae sector block.

Now, I'm guessing I'd have to list the X,Y coordinates of every system in a list with Names. So that when a Name is Entered in a Search Box it moves the map to the listed coordinates.

But i have no idea even where to start with this. any help would be appreciated.

share|improve this question

1 Answer 1

up vote 0 down vote accepted

I'm guessing I'd have to list the X,Y coordinates of every system in a list with Names. So that when a Name is Entered in a Search Box it moves the map to the listed coordinates.

Your idea is correct, you need to take a look this: Search functionality in Openlayers/Geoserver

Basically, the demo that would work for you is this (you need to refresh a couple of times to get it working):

http://ian01.geog.psu.edu/geoserver/www/search/gazetteer.html

and its instructions:

http://ian01.geog.psu.edu/geoserver_docs/apps/gaz/index.html

Hope this helps,

share|improve this answer
    
Thank you for the quick reply! I will take a look at the links soon. –  DazzaJay Jun 19 '13 at 11:17

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.