Hi Robert,<div><br></div><div>You're question is a little too general to really be able to help you and this list dedicated to the client side aspect of Open Layers.</div><div><br></div><div>Basically, you want an ajax call to your dbase to generate a vector layer with markers writing the attributes you want to write to each locus. From there, read the vector layer and popup examples. Finally, the zoom can be solved a number of ways grabbing the bbox of the markers once they're loaded.</div>
<div><br></div><div>hope that helps, I did something similar here <a href="http://www.sas.upenn.edu/jerba">www.sas.upenn.edu/jerba</a> go to the webgis section. If that's close to what you want to do, message me and I can give you the php.<br>
<br><div class="gmail_quote">On Sun, Oct 21, 2012 at 7:03 AM, robertico <span dir="ltr"><<a href="mailto:robert_rdk@hotmail.com" target="_blank">robert_rdk@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I'm currently running my own Openstreetmap server. I'd like to use OpenLayers and Openstreetmap to add markers on a map.
I'd like to load the coordinates from a Ms-SQL database or text file and scale the map (correct zoom factor) to show all available markers.
Also like to add extra information to a marker (visible after click)
Who can provide me a sample?
Regards,
Robert
<br><hr align="left" width="300">
View this message in context: <a href="http://osgeo-org.1560.n6.nabble.com/Newbie-OpenLayers-Openstreetmap-adding-markers-tp5010128.html" target="_blank">Newbie: OpenLayers, Openstreetmap adding markers</a><br>
Sent from the <a href="http://osgeo-org.1560.n6.nabble.com/OpenLayers-Users-f3910695.html" target="_blank">OpenLayers Users mailing list archive</a> at Nabble.com.<br><br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
<br></blockquote></div><br></div>