Assuming: you already have made the markers and have some how separated them into groups based on area step 1) define a new google maps latLngBounds class for each of your marker groups step 2) figure out the Latitude and Longitude of each corner of each of your areas step 3) use the google polygon class to create an "area" using the LatLngs that represent your corners step 4) be sure to set the clickable property of the polygons to true step 5) add a google maps eventListener to each polygon that is trigger on click step 6) have the event listener call map.fitBounds(_____) fill the blank with the latLngBounds you defined in step one *if your markers are invisible or have a "map" property of null step 7) marker.setVisible(true) or marker.setMap(____) fill blank with whatever variable you map is defined as
On Aug 1, 11:09 am, franklinNY <[email protected]> wrote: > Dear Sirs and Madams, > > I want to define areas within maps. I am using Google Maps V3. > > As a example, I have a workspace as the New York City map and I want to > devide the map in blocks > - Block Upper West Side > - Block Upper East Side > - Block Rockfeller Center > > The user would see my map and the 3 Blocks. If the user Select the Upper > East Side, the map would zoom on the Upper East and the user could see the > markers within the Upper East Side. > > So, How please to create these Area (like Javascript JS Area shape Coords) > > Another general question : "Does Google is totally sure to move to V3. I ask > this question to be sure that I took the right decision not to develop > within V2. We are affraid because sometimes in the past, Google changed his > mind. I need to secure that the V3 is the upper class and smartest tool from > Google Maps representing the only possible future and derivative from Google > Maps." > > Thanks you for your answer from your knowledge of Google Maps V3. > > Emile Franklin -- 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 [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-js-api-v3?hl=en.
