Sounds like you''re trying to implement a spatial search facility.
Your best approach would be to use a back-end datastore that knows how to do
spatial queries, such as PostgreSQL or GeoCouch.
You''d need to make sure the coordinates of each of your markers are in
the data store and when you initially render the map, ensure that each marker
has some form of unique identifier associated with it.
When you run your query, you''ll then be able to determine if any marker
or markers match the search criteria.
This isn''t the most trivial of tasks. You''ll need to separate
out your display logic (into JavaScript and Mapstraction) and your back-end data
store and query logic (probably something like PHP).
Hope this helps ...
-Gary
--
gary at vicchi.org | twitter.com/vicchi | www.linkedin.com/in/garygale |
www.garygale.com
On 20 May 2013, at 11:15, Mauro Vignati <vignus at gmail.com> wrote:
> Hi all,
>
> I am on a project where I have to search for markers based on their
longitude.
>
> I have already all the markers on the map. Now I should implement a search
form, where I can insert a longitude: if a marker with this longitude exists,
then there will be a zoom on that marker.
>
> Is this possible to do? Did someone already try it?
>
> Many thanks for any help
> Mauro
> _______________________________________________
> Mapstraction mailing list
> Mapstraction at lists.mapstraction.com
> http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com