Skip to content

Instantly share code, notes, and snippets.

View sfletche's full-sized avatar

Scott Fletcher sfletche

  • Premise
  • Portland, OR
View GitHub Profile
@sfletche
sfletche / vector_ordering_with_selectfeature.html
Created August 30, 2012 19:07
SelectFeature Control overrides vector layer ordering
<!DOCTYPE html>
<html>
<head>
<title>OpenLayers Mouseover Multiple vectors</title>
<link rel="stylesheet" href="http://openlayers.org/dev/theme/default/style.css" type="text/css">
<link rel="stylesheet" href="http://openlayers.org/dev/examples/style.css" type="text/css">
<script src="http://openlayers.org/dev/OpenLayers.js"></script>
<script type="text/javascript">
var map, controls, highlightCtrl, outputLayers;
@sfletche
sfletche / OpenLayers Feature Events
Created November 12, 2012 19:54
using event listeners rather than the SelectFeature control for vector attribution
<!DOCTYPE html>
<html>
<head>
<title>OpenLayers Feature Events Example</title>
<link rel="stylesheet" href="http://openlayers.org/dev/theme/default/style.css" type="text/css">
<link rel="stylesheet" href="http://openlayers.org/dev/examples/style.css" type="text/css">
<script src="https://raw.github.com/ahocevar/openlayers/4486a5657b2f2f004115659ad4371781c62aa61e/lib/OpenLayers.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script type="text/javascript">
var map, style, outputLayers;
[
{
"pk": 1,
"model": "mp_settings.marineplannersettings",
"fields": {
"bitly_username": "",
"default_hash": "#x=-80.13&y=26.48&z=9&logo=false&dls%5B%5D=true&dls%5B%5D=1&dls%5B%5D=352&dls%5B%5D=true&dls%5B%5D=0.75&dls%5B%5D=282&basemap=Google+Satellite&tab=data&legends=false&layers=true",
"project_name": "Our Florida Reefs",
"table_of_contents": 6,
"project_icon": "",
[
{
"pk": 1,
"model": "data_manager.toc",
"fields": {
"themes": [
2,
1
],
"name": "Sample"
{
"available_rates": [
{
"procode": "A600875",
"term": 5,
"apr": 3.99,
"paymentFactory": 1.84,
"contractorFee": 8.75
},
{
{
"plan_groups": [
{
"group_code": "default",
"plans": [
{
"code": "A",
"term_months": 60,
"interest_rate": 6.99,
"approved_amount_financed": 20000.0
{
"plan_groups": [
{
"group_code": "default",
"plans": [
{
"code": "A",
"term_months": 60,
"interest_rate": 6.99,
"approved_amount_financed": 20000.0
{
"id": 14919,
"created_at": "2016-01-24T00:22:10.000Z",
"updated_at": "2016-01-24T00:22:10.000Z",
"origination_source": "CHAMP",
"transaction_identifier": "46ef6022-fd8c-48f3-b80a-8ee4da780438",
"program": "re_home",
"self_install": false,
"contractor": {
"location_id": "LOC3",
{
"id": 14919,
"created_at": "2016-01-24T00:22:10.000Z",
"updated_at": "2016-01-24T00:22:10.000Z",
"origination_source": "CHAMP",
"transaction_identifier": "910c068c-5d76-4183-9985-3bf579825cc0",
"self_install": false,
"contractor": {
"location_id": "LOC3",
"sales_rep_id": "55A93D21-C920-4408-9DDE-152DC088CE3F",
"plan_groups": [
{
"group_code": "default",
"plans": [
{
"code": "A600400",
"term_months": 60,
"interest_rate": 7.99,
"approved_amount_financed": 20000.0
},