Highlight an object clicking it

View: New views
3 Messages — Rating Filter:   Alert me  

Highlight an object clicking it

by Eugene Kondrashev :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi!
I have a quastion about mapnik features.  I've played with mapnik
examples for some time, but didn't found an answer.
So,
Is there a possibility to highlight a target object by a click?
For example if we have a map with a number of roads and buildings, is it
possible to change a color/size of one road(building) having clicked
(x,y) coords only.
Knowing that output image is depended on applied xml and differs from
shape file data, I hardly can imagine if it is possible.
Please let me know if there is such a possibility and if so, how can i
organize it?
Thanks!

--
Eugen Kondrashev.
_______________________________________________
Mapnik-users mailing list
Mapnik-users@...
https://lists.berlios.de/mailman/listinfo/mapnik-users

Re: [Mapnik-devel] Highlight an object clicking it

by Dane Springmeyer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Yes there is. See the query_point or query_map_point functions of the  
Mapnik::map class.

Dane



On Sep 25, 2009, at 1:34 PM, Eugen Kondrashev <ekondrashev@...>  
wrote:

> Hi!
> I have a quastion about mapnik features.  I've played with mapnik
> examples for some time, but didn't found an answer.
> So,
> Is there a possibility to highlight a target object by a click?
> For example if we have a map with a number of roads and buildings,  
> is it
> possible to change a color/size of one road(building) having clicked
> (x,y) coords only.
> Knowing that output image is depended on applied xml and differs from
> shape file data, I hardly can imagine if it is possible.
> Please let me know if there is such a possibility and if so, how can i
> organize it?
> Thanks!
>
> --
> Eugen Kondrashev.
> _______________________________________________
> Mapnik-devel mailing list
> Mapnik-devel@...
> https://lists.berlios.de/mailman/listinfo/mapnik-devel
_______________________________________________
Mapnik-users mailing list
Mapnik-users@...
https://lists.berlios.de/mailman/listinfo/mapnik-users

Re: [Mapnik-devel] Highlight an object clicking it

by Dane Springmeyer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

while api docs are here:

http://svn.mapnik.org/trunk/docs/api_docs/python/mapnik._mapnik.Map-class.html#query_map_point

and some sample usage here:

http://mapnik-utils.googlecode.com/svn/sandbox/testing/query_point/query_features.py

Dane


On Sep 26, 2009, at 3:00 PM, Dane Springmeyer wrote:

> Yes there is. See the query_point or query_map_point functions of the
> Mapnik::map class.
>
> Dane
>
>
>
> On Sep 25, 2009, at 1:34 PM, Eugen Kondrashev <ekondrashev@...>
> wrote:
>
>> Hi!
>> I have a quastion about mapnik features.  I've played with mapnik
>> examples for some time, but didn't found an answer.
>> So,
>> Is there a possibility to highlight a target object by a click?
>> For example if we have a map with a number of roads and buildings,
>> is it
>> possible to change a color/size of one road(building) having clicked
>> (x,y) coords only.
>> Knowing that output image is depended on applied xml and differs from
>> shape file data, I hardly can imagine if it is possible.
>> Please let me know if there is such a possibility and if so, how  
>> can i
>> organize it?
>> Thanks!
>>
>> --
>> Eugen Kondrashev.
>> _______________________________________________
>> Mapnik-devel mailing list
>> Mapnik-devel@...
>> https://lists.berlios.de/mailman/listinfo/mapnik-devel
> _______________________________________________
> Mapnik-devel mailing list
> Mapnik-devel@...
> https://lists.berlios.de/mailman/listinfo/mapnik-devel

_______________________________________________
Mapnik-users mailing list
Mapnik-users@...
https://lists.berlios.de/mailman/listinfo/mapnik-users