Is there is a way in JavaScript to add offline map to a PHP/HTML page, in such a way that I am just using a JPEG image (of a map) and giving its bounds coordinates (longitude and latitude), and then somehow using those coordinates that I have set for the image (the map) to pinpoint something on it?
For Example:
- I have an image that is 400px wide and 300px long.
- At 1px long the latitude is 44.2353, and at 300px its 49.2539.
- Something similar with longitude.
-
And then, code does the following:
SetMarkerPosition(latitude, longtitude);
A marker appears on the map at the specified coordinates.