insert HTML in a specific coordinate

Topics: SharpMap Project, Web Controls
Jul 12, 2009 at 1:56 AM

HI

I have the latitude and longitud of some places, and I have the Shape files, I can show the maps and locate those places in the map.

now what I want to do is display in those specific places some nice HTML markup, displaying some info that came from a different database or backend, this info change frecuently that is why is not in the shape file db, also in some places I want to show some small movie for the places,  like a embedded youtube video, for example.

I'm using the AJAX web control becuase it works really nice and is really cool.

how I can add something like <div style="width:60px; height:20px"><img src="icon.png"/><span>hello</span></div> in a specific latitude and longitude?  in case of videos how I can add something like <object width="425" height="344"><param ....</object>? well the first html example will help me with the object example.

or

how I can use a shim technique  ( small iframe on top the map with zindex higher than the map) that will be located in those coordinates, and works fine if I pan, zoom in or zoom out?  by the way it doesn't have to resize when zooming maybe disappear at some specific zoom.

I will appreciate any code example or Idea that help me.

Regards

grinv

Coordinator
Jul 13, 2009 at 9:28 AM

Hi grinv, you may do better using OpenLayers as the client and SharpMap as a wms server - the OpenLayers client api is very rich and allows for markers, popups etc.. However you will need to grok javascript... http://www.openlayers.org hth jd

Jul 13, 2009 at 6:39 PM

Thanks, I'm looking now in to OpenLayers.

I'm a littler sad because I'm losing the cool features of the Ajax Control, but OpenLayer will do the other tricks that for now are more important.

grinv