Currently the website is build on gmap api with retrieval of data (e.g. latitude and longitude) from fusiontable and I want to adapt into onemap. I went through the documentation page but I do not understand how to embed the static map into html as it was given as a link and how to get points on the static map.
@eddieleow The static map is a GET request which returns an image. Thus, you likely can’t obtain points on the static map through user interaction without some hacks.
The response is returned in PNG format in accordance to the parameter inputs. Users can also create personalised static maps via the Static Map Creator.
Using the static map API
You can use this in an image tag like so:
For the static map, it requires latitude and longitude coordination in which I only have Singapore postal codes. Is there a way to convert postal codes into latitude and longtitude?
PS. I have more than one postal codes which I would like to mark in the map.
@eddieleow Use the search API. It’s works well with postal codes
This is absolutely right. You can get your points directly from the search results.
Btw, we have a minimap creator too…(Sneak-Peek: Advanced Minimap is coming! In the new version, you could drop multiple points with nice icons!)