New answers tagged php
There's also this jsfiddle I stumbled upon. I can't claim it as my own but you can sort through the options objects via event.target.options or even set the color attribute for a target event via event.target.setAttribute()
Try this: $sql = "insert into table (geom, name, type) values (st_setsrid( st_makepoint($longitude, $latitude), 4326))"; In double quotes variable substitution is made by PHP, || is the SQL string concatenation operator.
Install PostgreSQL (an open source database) and spatially enable it with PostGIS (which comes with a tool to convert shp files into the database). Then you can run the function 'st_within' to see if the location falls within a logical area.
Top 50 recent answers are included