Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
A little while back, I posted a few mapping extensions that read in various kinds of data to allow mapping of regions and data on Google Maps. One major problem with those is that Google is now charging money for useof their mapping product, so in order to use this extension on any grand scale,they'd need to purchase licensing.
So, in response to this, I've built an extension which uses all open source (free) products to provide some similar mapping capabilities(and then some). The tool which provides the scrolling and "slippy" map features is called OpenLayers which reads in map imagery from OpenStreetMap. What I've done this time, however, is built the extension to read in KML files for the regions. KML is a format that is very common in the industry (Google Earth uses and creates the files) ,and there are many tools out there to convert other formats (like shape files) into the KML format.
So, for example, I went and found a KML file for the US 50 states and put it into this new extension, and was able to create a map similar to my other US Map extension:
New Features
Above and beyond the normal features of the extensions I created for Google, this extension provides a few new features:
I've attached the extension as well as a QVW and quick guide. In the extension is a sample KML file called us_states.kml that can be used with the example QVW.
Please let me know if you have any questions. Hopefully this is useful to people.
Due to some issues with versions of Internet Explorer prior to 9 and how it handles different data formats, it is now necessary to change the KML file into an XML file prior to loading it into the extension. So, for example, if you have a KML named "counties.kml" you need to change the file extension so it becomes "counties.xml". Hopefully I'll eventually get time so this last step can be avoided, but for now it's necessary in order for the extension to work in IE8.
I've updated the attatchments on this post to use an XML file, so the examples should now work.
Hello all,
The extension is installed, and the map is showing up, and the list boxes on the right seem to work together. But no colors appear on the map, and when I click on a state it invariably centers the view on the ocean to the southwest of Africa. Looking through the posts, I didn't see anything that quite matched my issues... Any suggestions on how to start fixing this?
Thanks,
Cam
Hello,
I have QV11 SR1 on Windows 7 64 bits, I have installed the extension, replace DynProperties, and changed Propierties.qvpp in order to "solve" the SR1 bug:
<div class='prop-grid_span-7 prop-grid_last' style='width:94%;' avq='prop_editexpression:.Chart.Expression.1.0.Definition'></div> |
I also have reloaded data as cliftondg says, but no result is represented on map, altough the list boxes are filled and I can select and filter. I see the map centered on the ocean to the southwest of Africa, like camerons.
Any idea?
Thanks in advance,
Iñigo.
Have you validated the properties for the KML map object?
ensure the following
Region name : State
Percentage : =40
KML Filename : us_states.xml
Brian,
This is a great extension and I have lots of uses for it.
I have a question though, I want to use four colors versus three. I have built the following formula to determine the colors but I cannot determine where I need to put this formula.
If(Num >0 and Num <25, '#F2EF1B', If (Num >24 and Num <50, '#E57A00', If (Num>49 and Num <75, '#00E507', If (Num
>74, '#439400', '#00E507'))))
Can you help?
Thanks,
Mike Coleman
Brian,
This is a great extension and I have lots of uses for it.
I have a question though, I want to use four colors versus three. I have built the following formula to determine the colors but I cannot determine where I need to put this formula.
If(Num >0 and Num <25, '#F2EF1B', If (Num >24 and Num <50, '#E57A00', If (Num>49 and Num <75, '#00E507', If (Num
>74, '#439400', '#00E507'))))
Can you help?
Thanks,
Mike Coleman
Brian,
This is a great extension and I have lots of uses for it.
I have a question though, I want to use four colors versus three. I have built the following formula to determine the colors but I cannot determine where I need to put this formula.
If(Num >0 and Num <25, '#F2EF1B', If (Num >24 and Num <50, '#E57A00', If (Num>49 and Num <75, '#00E507', If (Num
>74, '#439400', '#00E507'))))
Can you help?
Thanks,
Mike Coleman
Brian,
This is a great extension and I have lots of uses for it.
I have a question though, I want to use four colors versus three. I have built the following formula to determine the colors but I cannot determine where I need to put this formula.
If(Num >0 and Num <25, '#F2EF1B', If (Num >24 and Num <50, '#E57A00', If (Num>49 and Num <75, '#00E507', If (Num
>74, '#439400', '#00E507'))))
Can you help?
Thanks,
Mike Coleman
Ik ben afwezig tot 24/09/2012.
Met vragen en problemen kan je altijd terecht bij René Louwies.
Mijn mails worden niet door gestuurd.
Dirk Konings
Opmerking: dit is een automatisch gegenereerd antwoord op uw bericht
"[Integration and Extensions] - Re: Open Source Geospatial Mapping
Extension using KML files" verzonden op 20/09/2012 17:47:57.
Dit is de enige melding die u ontvangt terwijl deze persoon afwezig is.
Mike,
You can put this formula into the Color Expression box of the properties for the extension.
Dirk,
Sorry, I don't speak German
Brian,
I put the formula is, but it does not stay in, it acts like I can't change that field.
Any suggestions?
Thanks,
Mike