Hi, You can store the marker locations in an external javascript file and include them with <script src="youfile.js"></script> or you could use ajax to request the locations off your server.
Either way, the lat-long values still need to be delivered to the browser so a knowledgeable person can find the values of the Markers if they really wanted to. - Luke On Sun, Apr 18, 2010 at 3:11 PM, Amber Computers < [email protected]> wrote: > Hi, > > I am completely new to API & JavaScript, so apologies in advance. > > I have only seen examples where Marker lat-long information is coded > directly into the html source code. We would like to add Markers but > need to respect privacy as much as possible. We have restricted zoom > level by adding a 'zoom_changed' listening event, so if someone zooms > too far, the page just sets the zoom level back to our preferred > value. > > The problem we have is that the Marker lat-long values are inside the > html source code. So a knowledgeable person can just take this > information then find the Markers exact location elsewhere. > > When designing web pages you can reference information to a CSS file. > Can you do something similar with JavaScript or Marker lat-long > values? Is there an alternative to putting lat-long information > directly into html source code? > > Any help would be greatly appreciated. > > -- > 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]<google-maps-js-api-v3%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-maps-js-api-v3?hl=en. > > -- 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.
