Hi, I am working in a real estate site.If customer enters something in a text box, i need to display the openstreet map based on the user queries with markers (For reference: Like this) in a reference site they have done using google map. But client's requirement is opensteet map. Where i needs to start? Could you please someone can guide me through? asked 21 May '12, 06:18 Raj |
You need:
For points 2 and 3 you will either be relying on a service provided by someone else (which may cost money and may be subject to certain usage restrictions) or you will be setting up your own server(s) (which may require considerable resources). The switch2osm.org web site has good resources aimed at people looking for a Google maps replacement. answered 21 May '12, 07:48 Frederik Ramm ♦ Hi, I tried to implement but i failed. Could you please post some sample code. I mean i don't know how to includes all together (1,2 and 3). Please help me out.
(21 May '12, 13:39)
Raj
|
A brief link for a start http://wiki.openstreetmap.org/wiki/Openlayers_POI_layer_example This is an example how to use OpenLayers to show POIs on top of a OpenStreetMap base map. The next step is to get that locations from a database: http://wiki.openstreetmap.org/wiki/OpenLayers_Dynamic_POI Note that there are other frameworks too, for example Leaflet. It could be even better suited, but I haven't yet used Leaflet. answered 21 May '12, 07:43 Roland Olbricht |