On Aug 23, 11:18 am, Arjan <arjan.van.d...@rivm.nl> wrote:
> Hi!
>
> I constructed a simple sample sector plot:
>
> http://arjan64.home.xs4all.nl/test2.html
>
> It does more or less what I had with static maps, but now hopefully
> without the restriction of 2048 characters. Of course, now I have some
> questions:
>
> 1): With the static maps, the zoom was set automatically such that
> alle elements would fit. Now I had to specify the zoom explicitly
> inthe code. Can I enable automatic map scaling with V3 API?

You can have it fit the map to the bounds of the objects displayed.

Create an empty LatLngBounds object, call the .extend method with
every point you display on your map (vertices of the polygons as
well), then call map.fitBounds with that LatLngBounds.

>
> 2): Is there a way to lock zooming? Once everything fits, I would
> prefer the zoom-level to remain fixed. Now, every time I touch the
> mouse wheel, or (try to) drag the map, the map changes.

If you want.  That

>
> 3): The sequence to draw a rectangle should in fact draw a segment of
> a circle. For a given central point, I would like to have a routine
> that draws such a sector for a specified radius from a given starting
> angle to a given end-angle. My fluency in "JavaScript" is poor, and I
> find this language quite different from the one's I use to use:
> FORTRAN and PASCAL. Can someone give me a hint on how to write such a
> subroutine? Now I wrote it all out for each sector separately, knowing
> that this is tedious if I have 6 sectors.

Does this search help:
http://groups.google.com/group/google-maps-js-api-v3/search?group=google-maps-js-api-v3&q=sector+map&qt_g=Search+this+group

The first result looks useful:
http://groups.google.com/group/google-maps-js-api-v3/browse_frm/thread/ece74d5461b9d0e1/c208cad4af4c6614?lnk=gst&q=sector+map#c208cad4af4c6614


>
> 4): Is there a way to enter the location of the central point and have
> the map use that?
>
> 5): Can I add text on the map? E.g.: usually, there are 8 sectors and
> I would like to add the sector numbers.

Yes. See the InfoBox third party library.

  -- Larry

>
> Thanks!
>
> Arjan

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to