[OpenLayers-Dev] Hiya

Marc Jansen jansen at terrestris.de
Wed Jan 20 04:59:32 EST 2010


Hi Brian,

some answers inline.

Brian Kittrell wrote:
> Hi,
>
> I just wanted to drop in a message and see if anyone could help me
> out.  I am developing a browser-based MMO game, and I need mapping
> functionality for it.  Basically, I was wondering if anyone could
> point me to some tutorials regarding the following topics that break
> things down to a non-javascript developer.
>
> 1.)  The ability to use the map library with an image instead of using
> a map server.
>   

Not a tutorial, but an example:
http://www.openlayers.org/dev/examples/image-layer.html

you should be able to add more Image layers that are being displayed at 
various zoomlevels.

> 2.)  The ability to add click-able hotspots to the map at specific
> coordinates (with URL-encoded GET variables, etc.)
>   

Maybe 
http://www.openlayers.org/dev/examples/select-feature-multilayer.html is 
what you are searching for?
Notice how the  Features of the layers are selectable and have an action 
that runs when a feuture is selected.
The vector-features can be styled to (more or less) whatever you want.

> 3.)  If there is an ability to draw shapes on the map of different
> colors (to represent borders of places).  Not an extremely important
> feature, but I'd like to have any suggestions or recommendations with
> regards to this.  (Maybe several overlay layers for each different
> territory aligned to the image somehow?)
>   

I'd suggest a Vector-layer with polygon features as well. If there are 
many regions you need to draw, I would definitely go with a mapserver.

See http://www.openlayers.org/dev/examples/vector-features.html for the 
creation and styling of vector features.

> I'm a PHP developer and have little experience in javascript.  I can
> follow tutorials, but I can't really write javascript from scratch
> like I can with PHP.  Any/all help is appreciated in advance.  Thanks.
>   

regards,
Marc

> - Brian
> _______________________________________________
> Dev mailing list
> Dev at openlayers.org
> http://openlayers.org/mailman/listinfo/dev
>
>   




More information about the Dev mailing list