I have javascript function mixed with ASP MVC Razor that get data from database and based on that data draw markers on google map.
@foreach (var item in Model.Locations)
{
@:addMarker(@item.Latitude, @item.Longitude, map);
}
The problem begins after I load this markers on map.
If I open page source in browser this foreach loop look like this:
addMarker(20.917701, 44.022, map);
addMarker(20.927701, 44.052, map);
addMarker(20.937701, 44.062, map);
addMarker(20.947701, 44.072, map);
...
Is it possible to somehow hide this coordinates values? My application business is based on these coordinates and I don’t wan’t that somebody make a script and get all coordinates from my site.
Unfortunately I don’t think there is, as third parties (Google or others) need access to these co-ordinates outside of the page request to create the map, so if you found some way to hide these details then Google maps would not be able to supply a map with the markers (as it requests these details outside of the page request.