Re: [Google Maps API v3] How to hide lat-long Marker infomation?

36 views
Skip to first unread message
Message has been deleted

Luke Mahé

unread,
Apr 21, 2010, 6:57:13 PM4/21/10
to google-map...@googlegroups.com
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 <adw...@ambercomputers.co.uk> 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 google-map...@googlegroups.com.
To unsubscribe from this group, send email to google-maps-js-a...@googlegroups.com.
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 google-map...@googlegroups.com.
To unsubscribe from this group, send email to google-maps-js-a...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Amber Computers

unread,
Apr 25, 2010, 11:38:09 AM4/25/10
to Google Maps JavaScript API v3
Thanks very much.

Amber Computers
Reply all
Reply to author
Forward
0 new messages