Myths on Maps

  • Log in
  • « display toggling with javascript
  • Injecting dynamic features - MySQL geometry »

Title madness

Posted by gregster on 27 May 2010 in Activity log

I have a nice web-app coming together, but I'm having trouble getting a place name title to pop up by features. I took the constructed page apart and this is what it looks like:

OL generates a div with an id like
OpenLayers.Layer.Vector_###
where ### is at least a two digit integer.
The div is positioned absolutely (top/left: 0) but has no width or height.

Inside this div is an svg node with an id like
OpenLayers.Layer.Vector_###_svgRoot
This node has width and height measurements which matches the size of the map.

Inside this is an svg group node with an id like
OpenLayers.Layer.Vector_###_root
which has another group in it, which has an id like
OpenLayers.Layer.Vector_###_vRoot

This group contains svg nodes with ids like
OpenLayers.Geometry.Point_###
and cx/cy offsets which are relative to the top left of the map

The actual shape representing the feature appears to be in a defs element with an id like
OpenLayers.Layer.Vector_###-shapename
where shapename is one of the OL shapes (triangle, square, star etc.)

This entry was posted by Greg and filed under Activity log.

Myths on Maps

This project will focus on deploying an interactive map of Europe with overlays for Greek and Roman myths, history, people and events.
SVN instructions for MoM editors
Development URL
HCMC Blogs home
  • Archives
  • Categories

Search

XML Feeds

  • Atom: Posts
  • RSS 2.0: Posts
More on RSS

This collection ©2023 by admin • Help • CMS