Hello.

I just started to try to move my maps.google.com map onto my own
server and need a bit of help.

The map is a preview of all the settlements that will be present in a
game modification with custom markers representing the faction that
controls that settlement.

You can view it here:

http://maps.google.com/maps/ms?ie=UTF&msa=0&msid=109399845911389691185.00046c01e4dae4c0dca89

First Question:

I want to add some markers, and i have created my own custom markers
(about 31 of them i believe) and will need these to be displayed, no
big deal.
The problem is though, how do i do it?

When i read the documentation i run into problems because i dont
understand how it will work.(Havent actually tried it though).
The problem is 'markerOptions'.

Copying from the doc;

"var tinyIcon = new GIcon();
tinyIcon.image = "http://labs.google.com/ridefinder/images/
mm_20_red.png";
tinyIcon.shadow = "http://labs.google.com/ridefinder/images/
mm_20_shadow.png";
tinyIcon.iconSize = new GSize(12, 20);
tinyIcon.shadowSize = new GSize(22, 20);
tinyIcon.iconAnchor = new GPoint(6, 20);
tinyIcon.infoWindowAnchor = new GPoint(5, 1);"

That is how i create my new marker, with its own name and all that.

And;

"markerOptions = { icon:tinyIcon };"
Is where i tell the api to use that marker.

Here is the problem, since i have more then one, how do i tell it to
use a new one?

Or will it use the same one, until i use the 'markerOptions' another
time?


Second Question:

Is there an easy way to extract the postition of my maps.google.com
map?


Third Question:

Is there a way for me to restrict the user from scrolling to map to
far from 'where the action is'? Like set up boundaries where the
camera will hit a wall. As there is no point in the user to be able to
scroll over to the americans and so on.



Thank you for any help.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to